cvs: php4(PHP_4_2_0) /ext/session mod_files.c
| From: | Sascha Schumann | Date: | Tue, 23 Apr 2002 18:10:49 +0000 |
| Subject: | cvs: php4(PHP_4_2_0) /ext/session mod_files.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-11349@lists.php.net to get a copy of this message | ||
sas Tue Apr 23 14:10:49 2002 EDT
Modified files: (Branch: PHP_4_2_0)
/php4/ext/session mod_files.c
Log:
MFH: Rip out use of O_EXCL
Index: php4/ext/session/mod_files.c
diff -u php4/ext/session/mod_files.c:1.72 php4/ext/session/mod_files.c:1.72.2.1
--- php4/ext/session/mod_files.c:1.72 Wed Mar 6 06:49:51 2002
+++ php4/ext/session/mod_files.c Tue Apr 23 14:10:49 2002
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: mod_files.c,v 1.72 2002/03/06 11:49:51 sas Exp $ */
+/* $Id: mod_files.c,v 1.72.2.1 2002/04/23 18:10:49 sas Exp $ */
#include "php.h"
@@ -141,14 +141,7 @@
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);