From: Sascha Schumann Date: Tue, 23 Apr 2002 18:10:49 +0000 (+0000) Subject: MFH: Rip out use of O_EXCL X-Git-Tag: php-4.2.1RC1~48 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=86cb47ea9c655c4dc671de3d9e5214d84e6d4238;p=php MFH: Rip out use of O_EXCL --- diff --git a/ext/session/mod_files.c b/ext/session/mod_files.c index 9ca57b7eac..36b54b81a4 100644 --- a/ext/session/mod_files.c +++ b/ext/session/mod_files.c @@ -141,14 +141,7 @@ static void ps_files_open(ps_files *data, const char *key TSRMLS_DC) data->lastkey = estrdup(key); -#ifdef O_EXCL - data->fd = VCWD_OPEN(buf, O_RDWR | O_BINARY); - - if (data->fd == -1 && errno == ENOENT) - data->fd = VCWD_OPEN_MODE(buf, O_EXCL | O_RDWR | O_CREAT | O_BINARY, 0600); -#else data->fd = VCWD_OPEN_MODE(buf, O_CREAT | O_RDWR | O_BINARY, 0600); -#endif if (data->fd != -1) flock(data->fd, LOCK_EX);