]> git.sur5r.net Git - bacula/bacula/commitdiff
Correct .my.cnf umask in make_catalog_backup.pl
authorEric Bollengier <eric@eb.homelinux.org>
Wed, 3 Feb 2010 09:03:57 +0000 (10:03 +0100)
committerEric Bollengier <eric@eb.homelinux.org>
Wed, 3 Feb 2010 09:05:16 +0000 (10:05 +0100)
bacula/src/cats/make_catalog_backup.pl.in

index f3efec2f343d362ec0dd24a0bd0307a2838a4bb3..b4de65c4196473047dae7287afb6d4d61c6b1202 100644 (file)
@@ -89,7 +89,7 @@ sub dump_pgsql
 sub dump_mysql
 {
     my %args = @_;
-    umask(0700);
+    umask(0077);
     unlink("$wd/.my.cnf");
     open(MY, ">$wd/.my.cnf") 
         or die "Can't open $wd/.my.cnf for writing $@";