]> granicus.if.org Git - php/commitdiff
Netware specific stat structure issues.
authorAnantha Kesari H Y <hyanantha@php.net>
Mon, 25 Jul 2005 14:06:17 +0000 (14:06 +0000)
committerAnantha Kesari H Y <hyanantha@php.net>
Mon, 25 Jul 2005 14:06:17 +0000 (14:06 +0000)
--Kamesh

ext/session/mod_files.c

index 53188d871fa19fc07dc7a3fe3a479a53724f1549..744fab21b54008487195552227c7832dce8a89d3 100644 (file)
@@ -215,7 +215,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++;
                                }