diff options
author | mkanat%bugzilla.org <> | 2009-09-22 00:20:56 +0000 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2009-09-22 00:20:56 +0000 |
commit | 50642a730f219e57257745c0f92606f16c883aea (patch) | |
tree | 545abd31655fe3d38982bb6b81f712e1a934bd12 /Bugzilla | |
parent | da1e0f0e5d9e3d2659fb9bb137a340481d88cbcb (diff) | |
download | bugs-50642a730f219e57257745c0f92606f16c883aea.tar bugs-50642a730f219e57257745c0f92606f16c883aea.tar.gz bugs-50642a730f219e57257745c0f92606f16c883aea.tar.bz2 bugs-50642a730f219e57257745c0f92606f16c883aea.tar.xz bugs-50642a730f219e57257745c0f92606f16c883aea.zip |
Bug 517632: Make checksetup.pl die when it fails to create a directory
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> (module owner) a=mkanat
Diffstat (limited to 'Bugzilla')
-rw-r--r-- | Bugzilla/Install/Filesystem.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Bugzilla/Install/Filesystem.pm b/Bugzilla/Install/Filesystem.pm index 763fd85bf..fcc159008 100644 --- a/Bugzilla/Install/Filesystem.pm +++ b/Bugzilla/Install/Filesystem.pm @@ -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: $!"; } } |