mirror of
https://github.com/vrana/adminer.git
synced 2025-08-08 07:36:44 +02:00
Use chmod() instead of umask()
This commit is contained in:
@@ -1083,9 +1083,9 @@ function password_file($create) {
|
||||
if ($return || !$create) {
|
||||
return $return;
|
||||
}
|
||||
umask(066);
|
||||
$fp = @fopen($filename, "w"); // @ - can have insufficient rights //! is not atomic
|
||||
if ($fp) {
|
||||
chmod($filename, 0600);
|
||||
$return = rand_string();
|
||||
fwrite($fp, $return);
|
||||
fclose($fp);
|
||||
|
Reference in New Issue
Block a user