cvs: php4 /ext/session mod_files.c

From: Date: Wed, 04 Sep 2002 13:51:08 +0000
Subject: cvs: php4 /ext/session mod_files.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-13824@lists.php.net to get a copy of this message
kalowsky Wed Sep 4 09:51:08 2002 EDT Modified files: /php4/ext/session mod_files.c Log: taking out the PWRITE calls too Index: php4/ext/session/mod_files.c diff -u php4/ext/session/mod_files.c:1.77 php4/ext/session/mod_files.c:1.78 --- php4/ext/session/mod_files.c:1.77 Wed Sep 4 09:42:59 2002 +++ php4/ext/session/mod_files.c Wed Sep 4 09:51:08 2002 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: mod_files.c,v 1.77 2002/09/04 13:42:59 kalowsky Exp $ */ +/* $Id: mod_files.c,v 1.78 2002/09/04 13:51:08 kalowsky Exp $ */ #include "php.h" @@ -294,12 +294,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);

« previous php.cvs (#13824) next »