From 0fdb77d6c3fc2134200d8e96e4d7fc60a1382909 Mon Sep 17 00:00:00 2001 From: Niels Thykier Date: Mon, 23 Oct 2017 21:18:21 +0000 Subject: dh_usrlocal: Fix inverted boolean logic Signed-off-by: Niels Thykier --- debian/changelog | 3 +++ dh_usrlocal | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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 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; -- cgit v1.2.3