Chmod new file not old file
This commit is contained in:
parent
2ce43dc0d8
commit
2d237cadc9
@ -950,7 +950,7 @@ function dol_move($srcfile, $destfile, $newmask=0, $overwriteifexists=1)
|
||||
else dol_syslog("files.lib.php::dol_move failed", LOG_WARNING);
|
||||
}
|
||||
if (empty($newmask) && ! empty($conf->global->MAIN_UMASK)) $newmask=$conf->global->MAIN_UMASK;
|
||||
@chmod($newpathofsrcfile, octdec($newmask));
|
||||
@chmod($newpathofdestfile, octdec($newmask));
|
||||
}
|
||||
|
||||
return $result;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user