From 7dca298b213994bbea25d6a072385f0a13d23402 Mon Sep 17 00:00:00 2001 From: "Thies C. Arntzen" Date: Tue, 13 Jun 2000 15:48:38 +0000 Subject: [PATCH] copy() now creates the destination file with mode 0777 again. this is the way it used to be in PHP 3 --- ext/standard/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/standard/file.c b/ext/standard/file.c index fb34ad6f60e..b081e529e69 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);