]> git.donarmstrong.com Git - debhelper.git/blobdiff - dh_fixperms
dh_fixperms: Ensure lintian overrides are mode 644. (Patch from #459548)
[debhelper.git] / dh_fixperms
index d9c726ca5fa3c079f64bdd4a12c95cd90954410a..1d4a33f33d6954f0a1d27fdb3a93bf53441d6720 100755 (executable)
@@ -105,6 +105,13 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
                        "-name '*.ali' $find_options -print0",
                        "2>/dev/null | xargs -0r chmod uga-w");
        }
+
+       # Lintian overrides should never be executable, too.
+       if (-d "$tmp/usr/share/lintian") {
+               complex_doit("find $tmp/usr/share/lintian/overrides",
+                       "-type f $find_options -print0",
+                       "2>/dev/null | xargs -0r chmod 644");
+       }
 }
 
 =head1 SEE ALSO