From 8e0b019f895b3e742a353ac11ff1fe38d121de18 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Sat, 16 Sep 2006 16:53:50 +0200 Subject: permission setting in io_rename fixed #912 darcs-hash:20060916145350-7ad00-cb78b531006e1f1875b2d8e8bc648740e5021736.gz --- inc/io.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'inc') diff --git a/inc/io.php b/inc/io.php index 2b1272675..5fd1d6673 100644 --- a/inc/io.php +++ b/inc/io.php @@ -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; } -- cgit v1.2.3