diff options
author | Andi Gutmans <andi@php.net> | 2000-05-23 14:36:27 +0000 |
---|---|---|
committer | Andi Gutmans <andi@php.net> | 2000-05-23 14:36:27 +0000 |
commit | 521f03c184fad08cc6943decd53df29f4a3ed830 (patch) | |
tree | 5e8f40e3843a91dc461b2e329d67ede4ac12252e /ext/session/mod_files.c | |
parent | 0eb51100b77996efbf0a728efe55ded996814025 (diff) | |
download | php-git-521f03c184fad08cc6943decd53df29f4a3ed830.tar.gz |
- Support virtual unlink()
Diffstat (limited to 'ext/session/mod_files.c')
-rw-r--r-- | ext/session/mod_files.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/session/mod_files.c b/ext/session/mod_files.c index c3fc91bb3f..aefebc1df5 100644 --- a/ext/session/mod_files.c +++ b/ext/session/mod_files.c @@ -178,7 +178,7 @@ static int _ps_files_cleanup_dir(const char *dirname, int maxlifetime) V_STAT(buf, &sbuf) == 0 && /* is it expired? */ (now - sbuf.st_atime) > maxlifetime) { - unlink(buf); + V_UNLINK(buf); nrdels++; } } @@ -276,7 +276,7 @@ PS_DESTROY_FUNC(files) if (!_ps_files_path_create(buf, sizeof(buf), data, key)) return FAILURE; - unlink(buf); + V_UNLINK(buf); return SUCCESS; } |