X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=dh_fixperms;h=65beac6f2aff42b0bca95681fca2563490cd0596;hb=eb9464fb4bbea788f2703a9bb3314dcd9fe2e0d5;hp=893ca56482e76649107805b65abd1af0f4466951;hpb=723ceeff129bc67c32df5db93f828ee4de838b59;p=debhelper.git diff --git a/dh_fixperms b/dh_fixperms index 893ca56..65beac6 100755 --- a/dh_fixperms +++ b/dh_fixperms @@ -117,6 +117,13 @@ foreach my $package (@{$dh{DOPACKAGES}}) { "-type f $find_options -print0", "2>/dev/null | xargs -0r chmod 644"); } + + # Files in $tmp/etc/sudoers.d/ must be mode 440. + if (-d "$tmp/etc/sudoers.d") { + complex_doit("find $tmp/etc/sudoers.d", + "-type f ! -perm 440 $find_options -print0", + "2>/dev/null | xargs -0r chmod 440"); + } } =head1 SEE ALSO