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:
@@ -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++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user