cvs: php4 /ext/standard/ file.c

From: Date: Mon, 29 May 2000 11:47:38 +0000
Subject: cvs: php4 /ext/standard/ file.c
Groups: php.version4 
Request: Send a blank email to php-version4+get-15889@lists.php.net to get a copy of this message
zeev Mon May 29 04:47:38 2000 EDT Modified files: /php4/ext/standard file.c Log: More secure mode Index: php4/ext/standard/file.c diff -u php4/ext/standard/file.c:1.83 php4/ext/standard/file.c:1.84 --- php4/ext/standard/file.c:1.83 Sat May 27 11:55:11 2000 +++ php4/ext/standard/file.c Mon May 29 04:47:38 2000 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: file.c,v 1.83 2000/05/27 18:55:11 andi Exp $ */ +/* $Id: file.c,v 1.84 2000/05/29 11:47:38 zeev Exp $ */ /* Synced with php 3.0 revision 1.218 1999-06-16 [ssb] */ @@ -1571,7 +1571,7 @@ #ifdef PHP_WIN32 if ((fd_t=V_OPEN((Z_STRVAL_PP(target),_O_WRONLY|_O_CREAT|_O_TRUNC|_O_BINARY,_S_IREAD|_S_IWRITE)))==-1){ #else - if ((fd_t=V_CREAT(Z_STRVAL_PP(target),0777))==-1) { + if ((fd_t=V_CREAT(Z_STRVAL_PP(target),0700))==-1) { #endif php_error(E_WARNING,"Unable to create '%s': %s", Z_STRVAL_PP(target), strerror(errno)); close(fd_s);

« previous php.version4 (#15889) next »