diff options
author | Niels Thykier <niels@thykier.net> | 2017-10-23 21:18:21 +0000 |
---|---|---|
committer | Niels Thykier <niels@thykier.net> | 2017-10-23 21:18:21 +0000 |
commit | 0fdb77d6c3fc2134200d8e96e4d7fc60a1382909 (patch) | |
tree | 59beeb95fca2ab3a5ab706fd5b6f91f1dfc0771c | |
parent | 2ecd29c27890d7a8d097144f65cc21f59c740709 (diff) | |
download | debhelper-0fdb77d6c3fc2134200d8e96e4d7fc60a1382909.tar.gz |
dh_usrlocal: Fix inverted boolean logic
Signed-off-by: Niels Thykier <niels@thykier.net>
-rw-r--r-- | debian/changelog | 3 | ||||
-rwxr-xr-x | dh_usrlocal | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog index b7206c91..b4159db7 100644 --- a/debian/changelog +++ b/debian/changelog @@ -9,6 +9,9 @@ debhelper (10.10.3) UNRELEASED; urgency=medium * dh_usrlocal: Correct the group name when creating directories owned by "root:staff". Thanks to Paul Gevers for reporting the bug. (Closes: #879643) + * dh_usrlocal: Fix inverted boolean logic that made dh_usrlocal + ignore ownership of directories when it should have preserved + them. -- Niels Thykier <niels@thykier.net> Mon, 23 Oct 2017 06:14:30 +0000 diff --git a/dh_usrlocal b/dh_usrlocal index 9d367f5e..5e06e658 100755 --- a/dh_usrlocal +++ b/dh_usrlocal @@ -85,7 +85,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) { my $user = 'root'; my $group = 'staff'; my $mode = '02775'; - if (not should_use_root()) { + if (should_use_root()) { my $stat = stat $fn; $user = getpwuid $stat->uid; $group = getgrgid $stat->gid; |