diff options
-rw-r--r-- | lib/Debian/Debhelper/Dh_Lib.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Debian/Debhelper/Dh_Lib.pm b/lib/Debian/Debhelper/Dh_Lib.pm index 7adcf8c0..d4c293d7 100644 --- a/lib/Debian/Debhelper/Dh_Lib.pm +++ b/lib/Debian/Debhelper/Dh_Lib.pm @@ -679,7 +679,7 @@ sub error_exitcode { sub _mkdirs { my ($maybe_chown, @dirs) = @_; return if not @dirs; - my $do_chown = !$maybe_chown && should_use_root(); + my $do_chown = $maybe_chown && should_use_root(); if ($do_chown) { # Use the real install for the case that requires root. The error handling # of File::Path for this case seems a bit too fragile for my liking. |