Skip to content
Snippets Groups Projects
Commit 8e0b019f authored by Andreas Gohr's avatar Andreas Gohr
Browse files

permission setting in io_rename fixed #912

darcs-hash:20060916145350-7ad00-cb78b531006e1f1875b2d8e8bc648740e5021736.gz
parent f1b03b6a
No related branches found
No related tags found
No related merge requests found
......@@ -490,7 +490,7 @@ function io_rename($from,$to){
global $conf;
if(!@rename($from,$to)){
if(@copy($from,$to)){
if($conf['fperm']) chmod($file, $conf['fperm']);
if($conf['fperm']) chmod($to, $conf['fperm']);
@unlink($from);
return true;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment