diff options
Diffstat (limited to 'util')
-rwxr-xr-x | util/mkdir-p.pl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/util/mkdir-p.pl b/util/mkdir-p.pl index dacf3ab16f..61a5826643 100755 --- a/util/mkdir-p.pl +++ b/util/mkdir-p.pl @@ -34,11 +34,12 @@ sub do_mkdir_p { } unless (mkdir($dir, 0777)) { + local($err) = $!; if (-d $dir) { # We raced against another instance doing the same thing. return; } - die "Cannot create directory $dir: $!\n"; + die "Cannot create directory $dir: $err\n"; } print "created directory `$dir'\n"; } |