mirror of
https://github.com/php/php-src.git
synced 2025-01-11 05:24:49 +08:00
More secure mode
This commit is contained in:
parent
1ae552c7d1
commit
124fe30f03
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user