]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 517632: Make checksetup.pl die when it fails to create a directory
authormkanat%bugzilla.org <>
Tue, 22 Sep 2009 00:20:56 +0000 (00:20 +0000)
committermkanat%bugzilla.org <>
Tue, 22 Sep 2009 00:20:56 +0000 (00:20 +0000)
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> (module owner) a=mkanat

Bugzilla/Install/Filesystem.pm

index 763fd85bfeb3534eeccedcff2cec6f9b590d0d73..fcc159008b23645a103b6e7a7e05f564c901620c 100644 (file)
@@ -335,10 +335,10 @@ sub update_filesystem {
     foreach my $dir (sort keys %dirs) {
         unless (-d $dir) {
             print "Creating $dir directory...\n";
-            mkdir $dir || die $!;
+            mkdir $dir or die "mkdir $dir failed: $!";
             # For some reason, passing in the permissions to "mkdir"
             # doesn't work right, but doing a "chmod" does.
-            chmod $dirs{$dir}, $dir || die $!;
+            chmod $dirs{$dir}, $dir or warn "Cannot chmod $dir: $!";
         }
     }