]> granicus.if.org Git - php/commitdiff
removed now obsolete NetWare hack since I fixed this
authorGuenter Knauf <guenter@php.net>
Tue, 3 Nov 2009 17:58:17 +0000 (17:58 +0000)
committerGuenter Knauf <guenter@php.net>
Tue, 3 Nov 2009 17:58:17 +0000 (17:58 +0000)
with Novell some longer time ago in their SDK header.

ext/standard/ftp_fopen_wrapper.c

index e514b5b7cafbb4bcc08a75cf3eeaa4e19e8f818c..2635b3a5faa7cdddfcd1927168c77334714f2dd5 100644 (file)
@@ -836,32 +836,19 @@ static int php_stream_ftp_url_stat(php_stream_wrapper *wrapper, char *url, int f
                tm.tm_sec += stamp - mktime(gmt);
                tm.tm_isdst = gmt->tm_isdst;
 
-#ifdef NETWARE
-               ssb->sb.st_mtime.tv_sec = mktime(&tm);
-#else
                ssb->sb.st_mtime = mktime(&tm);
-#endif
        } else {
                /* error or unsupported command */
 mdtm_error:
-#ifdef NETWARE
-               ssb->sb.st_mtime.tv_sec = -1;
-#else
                ssb->sb.st_mtime = -1;
-#endif
        }
 
        ssb->sb.st_ino = 0;                                             /* Unknown values */
        ssb->sb.st_dev = 0;
        ssb->sb.st_uid = 0;
        ssb->sb.st_gid = 0;
-#ifdef NETWARE
-       ssb->sb.st_atime.tv_sec = -1;
-       ssb->sb.st_ctime.tv_sec = -1;
-#else
        ssb->sb.st_atime = -1;
        ssb->sb.st_ctime = -1;
-#endif
 
        ssb->sb.st_nlink = 1;
        ssb->sb.st_rdev = -1;