diff options
Diffstat (limited to 'ext/session/mod_files.c')
-rw-r--r-- | ext/session/mod_files.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/session/mod_files.c b/ext/session/mod_files.c index 64879d5969..e9ff89212f 100644 --- a/ext/session/mod_files.c +++ b/ext/session/mod_files.c @@ -175,7 +175,7 @@ static int _ps_files_cleanup_dir(const char *dirname, int maxlifetime) snprintf(buf, MAXPATHLEN, "%s%c%s", dirname, DIR_DELIMITER, entry->d_name) > 0 && /* stat the directory entry */ - stat(buf, &sbuf) == 0 && + V_STAT(buf, &sbuf) == 0 && /* is it expired? */ (now - sbuf.st_atime) > maxlifetime) { unlink(buf); |