]> git.joonet.de Git - adminer.git/commitdiff
Make adminer.key group-readable
authorJakub Vrana <jakub@vrana.cz>
Fri, 27 Jun 2014 15:17:33 +0000 (08:17 -0700)
committerJakub Vrana <jakub@vrana.cz>
Fri, 27 Jun 2014 15:17:33 +0000 (08:17 -0700)
adminer/include/functions.inc.php

index 7cbbc599cf48cfb081037425ac82fd6c732bc560..a60eff999b660992fe30bcb852268f2420e9858a 100644 (file)
@@ -1085,7 +1085,7 @@ function password_file($create) {
        }
        $fp = @fopen($filename, "w"); // @ - can have insufficient rights //! is not atomic
        if ($fp) {
-               chmod($filename, 0600);
+               chmod($filename, 0660);
                $return = rand_string();
                fwrite($fp, $return);
                fclose($fp);