1
0
mirror of https://github.com/php/php-src.git synced 2026-04-28 02:33:17 +02:00

NetWare stat structure difference has been handled

This commit is contained in:
Anantha Kesari H Y
2005-03-10 11:41:00 +00:00
parent bd07142b91
commit 49afbfac4a
+4
View 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++;
}