cvs: php4(PHP_4_2_0) /ext/session mod_files.c
| From: | Dan Kalowsky | Date: | Wed, 04 Sep 2002 13:50:38 +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-13823@lists.php.net to get a copy of this message | ||
kalowsky Wed Sep 4 09:50:38 2002 EDT
Modified files: (Branch: PHP_4_2_0)
/php4/ext/session mod_files.c
Log:
Taking out the PWRITE functions too...
Index: php4/ext/session/mod_files.c
diff -u php4/ext/session/mod_files.c:1.72.2.2 php4/ext/session/mod_files.c:1.72.2.3
--- php4/ext/session/mod_files.c:1.72.2.2 Wed Sep 4 09:49:58 2002
+++ php4/ext/session/mod_files.c Wed Sep 4 09:50:38 2002
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: mod_files.c,v 1.72.2.2 2002/09/04 13:49:58 kalowsky Exp $ */
+/* $Id: mod_files.c,v 1.72.2.3 2002/09/04 13:50:38 kalowsky Exp $ */
#include "php.h"
@@ -282,12 +282,8 @@
if (vallen < (int)data->st_size)
ftruncate(data->fd, 0);
-#ifdef HAVE_PWRITE
- n = pwrite(data->fd, val, vallen, 0);
-#else
lseek(data->fd, 0, SEEK_SET);
n = write(data->fd, val, vallen);
-#endif
if (n != vallen) {
php_error(E_WARNING, "write failed: %s (%d)", strerror(errno), errno);