From 49afbfac4ab1e2bb6056d05bc30eb19bb9abf78f Mon Sep 17 00:00:00 2001 From: Anantha Kesari H Y Date: Thu, 10 Mar 2005 11:41:00 +0000 Subject: [PATCH] NetWare stat structure difference has been handled --- ext/session/mod_files.c | 4 ++++ 1 file changed, 4 insertions(+) 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++; } -- 2.50.1