summaryrefslogtreecommitdiff
path: root/ext/session/mod_files.c
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>2000-04-30 19:01:17 +0000
committerAndi Gutmans <andi@php.net>2000-04-30 19:01:17 +0000
commit5d5b09e1a73bb8446095df86ed61370c48385a55 (patch)
tree03a61a74b9e84476a185c914ecf5985c8e8acf78 /ext/session/mod_files.c
parent1f64d98753c407afdd788ba123ff077e81a342d3 (diff)
downloadphp-git-5d5b09e1a73bb8446095df86ed61370c48385a55.tar.gz
- Change some open's to V_OPEN()'s
Diffstat (limited to 'ext/session/mod_files.c')
-rw-r--r--ext/session/mod_files.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/session/mod_files.c b/ext/session/mod_files.c
index e9ff89212f..5b363a405b 100644
--- a/ext/session/mod_files.c
+++ b/ext/session/mod_files.c
@@ -132,16 +132,16 @@ static void _ps_files_open(ps_files *data, const char *key)
data->lastkey = estrdup(key);
#ifdef O_EXCL
- data->fd = open(buf, O_RDWR);
+ data->fd = V_OPEN((buf, O_RDWR));
if (data->fd == -1) {
if (errno == ENOENT) {
- data->fd = open(buf, O_EXCL | O_RDWR | O_CREAT, 0600);
+ data->fd = V_OPEN((buf, O_EXCL | O_RDWR | O_CREAT, 0600));
}
} else {
flock(data->fd, LOCK_EX);
}
#else
- data->fd = open(buf, O_CREAT | O_RDWR, 0600);
+ data->fd = V_OPEN((buf, O_CREAT | O_RDWR, 0600));
if (data->fd != -1)
flock(data->fd, LOCK_EX);
#endif