From: Anantha Kesari H Y Date: Thu, 10 Mar 2005 11:41:00 +0000 (+0000) Subject: NetWare stat structure difference has been handled X-Git-Tag: php-5.0.4RC1~40 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=49afbfac4ab1e2bb6056d05bc30eb19bb9abf78f;p=php NetWare stat structure difference has been handled --- diff --git a/ext/session/mod_files.c b/ext/session/mod_files.c index 21de0a8494..e6d0edfcab 100644 --- a/ext/session/mod_files.c +++ b/ext/session/mod_files.c @@ -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++; }