From: Thies C. Arntzen Date: Tue, 13 Jun 2000 15:48:38 +0000 (+0000) Subject: copy() now creates the destination file with mode 0777 again. this is X-Git-Tag: php-4.0.1RC~219 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7dca298b213994bbea25d6a072385f0a13d23402;p=php copy() now creates the destination file with mode 0777 again. this is the way it used to be in PHP 3 --- diff --git a/ext/standard/file.c b/ext/standard/file.c index fb34ad6f60..b081e529e6 100644 --- a/ext/standard/file.c +++ b/ext/standard/file.c @@ -1685,7 +1685,7 @@ PHP_FUNCTION(copy) #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),0700))==-1) { + if ((fd_t=V_CREAT(Z_STRVAL_PP(target),0777))==-1) { #endif php_error(E_WARNING,"Unable to create '%s': %s", Z_STRVAL_PP(target), strerror(errno)); close(fd_s);