Skip to content

Commit

Permalink
Use chmod() instead of umask()
Browse files Browse the repository at this point in the history
  • Loading branch information
vrana committed Jun 27, 2014
1 parent 7e3f2d9 commit 52eee61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adminer/include/functions.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 52eee61

Please sign in to comment.