]> granicus.if.org Git - php/commitdiff
NetWare stat structure difference has been handled
authorAnantha Kesari H Y <hyanantha@php.net>
Thu, 10 Mar 2005 11:41:00 +0000 (11:41 +0000)
committerAnantha Kesari H Y <hyanantha@php.net>
Thu, 10 Mar 2005 11:41:00 +0000 (11:41 +0000)
ext/session/mod_files.c

index 21de0a8494f6ef88d6b1d50378dbbbf630e55829..e6d0edfcabb86ce14535738d8a9f21e02ca80441 100644 (file)
@@ -219,7 +219,11 @@ static int ps_files_cleanup_dir(const char *dirname, int maxlifetime TSRMLS_DC)
                                buf[dirname_len + entry_len + 1] = '\0';
                                /* check whether its last access was more than maxlifet ago */
                                if (VCWD_STAT(buf, &sbuf) == 0 && 
+#ifdef NETWARE
+                                               (now - sbuf.st_mtime.tv_sec) > maxlifetime) {
+#else
                                                (now - sbuf.st_mtime) > maxlifetime) {
+#endif
                                        VCWD_UNLINK(buf);
                                        nrdels++;
                                }