From: Zeev Suraski Date: Mon, 29 May 2000 11:47:38 +0000 (+0000) Subject: More secure mode X-Git-Tag: PRE_EIGHT_BYTE_ALLOC_PATCH~202 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=124fe30f0382d87e7f52e02163d339f6ef7c868e;p=php More secure mode --- diff --git a/ext/standard/file.c b/ext/standard/file.c index f9f230dce1..816be70bf1 100644 --- a/ext/standard/file.c +++ b/ext/standard/file.c @@ -1571,7 +1571,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),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);