diff options
author | Martin Koeppe <mkoeppe@gmx.de> | 2015-01-08 18:39:56 +0100 |
---|---|---|
committer | Niels Thykier <niels@thykier.net> | 2015-01-08 20:45:46 +0100 |
commit | a660d37676fd2a1d06fe9e7f6570e9253a7ce7cd (patch) | |
tree | d6850c6b7b98195dec8ef16301c09a23410342a4 /dh_fixperms | |
parent | 0bf56fc00831503055e561f317bee183242f23fa (diff) | |
download | debhelper-a660d37676fd2a1d06fe9e7f6570e9253a7ce7cd.tar.gz |
Add leading 0 to "mode" parameters
Signed-off-by: Niels Thykier <niels@thykier.net>
Diffstat (limited to 'dh_fixperms')
-rwxr-xr-x | dh_fixperms | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/dh_fixperms b/dh_fixperms index 91fa2a59..ce287854 100755 --- a/dh_fixperms +++ b/dh_fixperms @@ -65,32 +65,32 @@ foreach my $package (@{$dh{DOPACKAGES}}) { # Fix up permissions in usr/share/doc, setting everything to not # executable by default, but leave examples directories alone. complex_doit("find $tmp/usr/share/doc -type f $find_options ! -regex '$tmp/usr/share/doc/[^/]*/examples/.*' -print0 2>/dev/null", - "| xargs -0r chmod 644"); + "| xargs -0r chmod 0644"); complex_doit("find $tmp/usr/share/doc -type d $find_options -print0 2>/dev/null", - "| xargs -0r chmod 755"); + "| xargs -0r chmod 0755"); # Executable man pages are a bad thing.. complex_doit("find $tmp/usr/share/man $tmp/usr/man/ $tmp/usr/X11*/man/ -type f", - "$find_options -print0 2>/dev/null | xargs -0r chmod 644"); + "$find_options -print0 2>/dev/null | xargs -0r chmod 0644"); # ..and so are executable shared and static libraries # (and .la files from libtool) .. complex_doit("find $tmp -perm -5 -type f", "\\( -name '*.so.*' -or -name '*.so' -or -name '*.la' -or -name '*.a' \\) $find_options -print0", - "2>/dev/null | xargs -0r chmod 644"); + "2>/dev/null | xargs -0r chmod 0644"); # ..and header files .. complex_doit("find $tmp/usr/include -type f $find_options -print0", - "2>/dev/null | xargs -0r chmod 644"); + "2>/dev/null | xargs -0r chmod 0644"); # ..and desktop files .. complex_doit("find $tmp/usr/share/applications -type f $find_options -print0", - "2>/dev/null | xargs -0r chmod 644"); + "2>/dev/null | xargs -0r chmod 0644"); # ..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"); + "2>/dev/null | xargs -0r chmod 0644"); # .. and perl modules. complex_doit("find $tmp/$vendorarch $tmp/$vendorlib -type f", @@ -128,14 +128,14 @@ foreach my $package (@{$dh{DOPACKAGES}}) { 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"); + "2>/dev/null | xargs -0r chmod 0644"); } - # Files in $tmp/etc/sudoers.d/ must be mode 440. + # Files in $tmp/etc/sudoers.d/ must be mode 0440. 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"); + "2>/dev/null | xargs -0r chmod 0440"); } } |