diff options
author | Zeev Suraski <zeev@php.net> | 2000-04-20 17:24:01 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 2000-04-20 17:24:01 +0000 |
commit | 883bd2b1de0afae5a3b9f36c0778ba0b08390e25 (patch) | |
tree | 55edad9c20fa7047ebc822893ca50548336f6655 /ext/session/mod_files.c | |
parent | 7412bd5c849ac8b49da2ffc195110307fae2ba37 (diff) | |
download | php-git-883bd2b1de0afae5a3b9f36c0778ba0b08390e25.tar.gz |
- Fix virtual cwd bug
- Add more V_STAT() V_LSTAT() changes
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); |