Commit 50642a73 authored by mkanat%bugzilla.org's avatar mkanat%bugzilla.org

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
parent da1e0f0e
......@@ -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: $!";
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment