diff options
Diffstat (limited to 'dh_fixperms')
-rwxr-xr-x | dh_fixperms | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/dh_fixperms b/dh_fixperms index d9c726ca..6fa50652 100755 --- a/dh_fixperms +++ b/dh_fixperms @@ -82,6 +82,11 @@ foreach my $package (@{$dh{DOPACKAGES}}) { # ..and desktop files .. complex_doit("find $tmp/usr/share/applications -type f $find_options -print0", "2>/dev/null | xargs -0r chmod 644"); + + # ..and OCaml native-code shared objects .. + complex_doit("find $tmp -perm -5 -type f", + "\\( -name '*.cmxs' \\) $find_options -print0", + "2>/dev/null | xargs -0r chmod 644"); # .. and perl modules. complex_doit("find $tmp/usr/lib/perl5 $tmp/usr/share/perl5 -type f", @@ -105,6 +110,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 |