dumpFile(), preserve existing file permissions
This commit is contained in:
parent
3effed88e0
commit
040a9abdbf
@ -516,7 +516,10 @@ class Filesystem
|
||||
}
|
||||
|
||||
$this->chmod($tmpFile, $mode);
|
||||
} else {
|
||||
@chmod($tmpFile, file_exists($filename) ? fileperms($filename) : 0666 & ~umask());
|
||||
}
|
||||
|
||||
$this->rename($tmpFile, $filename, true);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user