1
0
mirror of https://github.com/php/php-src.git synced 2026-04-10 17:43:13 +02:00

copy() now creates the destination file with mode 0777 again. this is

the way it used to be in PHP 3
This commit is contained in:
Thies C. Arntzen
2000-06-13 15:48:38 +00:00
parent 16b6a3f5e4
commit 7dca298b21

View File

@@ -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);