diff options
-rw-r--r-- | Debian/Debhelper/Dh_Lib.pm | 4 | ||||
-rwxr-xr-x | dh_fixperms | 20 | ||||
-rwxr-xr-x | dh_gencontrol | 2 | ||||
-rwxr-xr-x | dh_installdeb | 4 | ||||
-rwxr-xr-x | dh_makeshlibs | 2 | ||||
-rwxr-xr-x | dh_md5sums | 2 | ||||
-rwxr-xr-x | dh_strip | 2 |
7 files changed, 18 insertions, 18 deletions
diff --git a/Debian/Debhelper/Dh_Lib.pm b/Debian/Debhelper/Dh_Lib.pm index 67ce5c2b..72e489e9 100644 --- a/Debian/Debhelper/Dh_Lib.pm +++ b/Debian/Debhelper/Dh_Lib.pm @@ -975,13 +975,13 @@ sub debhelper_script_subst { complex_doit("sed s/#DEBHELPER#// < $file > $tmp/DEBIAN/$script"); } doit("chown","0:0","$tmp/DEBIAN/$script"); - doit("chmod",755,"$tmp/DEBIAN/$script"); + doit("chmod","0755","$tmp/DEBIAN/$script"); } elsif ( -f "debian/$ext$script.debhelper" ) { complex_doit("printf '#!/bin/sh\nset -e\n' > $tmp/DEBIAN/$script"); complex_doit("cat debian/$ext$script.debhelper >> $tmp/DEBIAN/$script"); doit("chown","0:0","$tmp/DEBIAN/$script"); - doit("chmod",755,"$tmp/DEBIAN/$script"); + doit("chmod","0755","$tmp/DEBIAN/$script"); } } 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"); } } diff --git a/dh_gencontrol b/dh_gencontrol index 64d02617..26aa321e 100755 --- a/dh_gencontrol +++ b/dh_gencontrol @@ -70,7 +70,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) { # This chmod is only necessary if the user sets the umask to # something odd. - doit("chmod","644","$tmp/DEBIAN/control"); + doit("chmod","0644","$tmp/DEBIAN/control"); doit("chown","0:0","$tmp/DEBIAN/control"); } diff --git a/dh_installdeb b/dh_installdeb index 02961ad0..26c2b0c5 100755 --- a/dh_installdeb +++ b/dh_installdeb @@ -130,10 +130,10 @@ foreach my $package (@{$dh{DOPACKAGES}}) { complex_doit("find $tmp/etc -type f -printf '/etc/%P\n' | LC_ALL=C sort >> $tmp/DEBIAN/conffiles"); # Anything found? if (-z "$tmp/DEBIAN/conffiles") { - doit("rm", "-f", "$tmp/DEBIAN/conffiles"); + doit("rm","-f","$tmp/DEBIAN/conffiles"); } else { - doit("chmod", 644, "$tmp/DEBIAN/conffiles"); + doit("chmod","0644","$tmp/DEBIAN/conffiles"); } } } diff --git a/dh_makeshlibs b/dh_makeshlibs index c6746e30..66e446ac 100755 --- a/dh_makeshlibs +++ b/dh_makeshlibs @@ -234,7 +234,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) { } if (-e "$tmp/DEBIAN/shlibs") { - doit("chmod",644,"$tmp/DEBIAN/shlibs"); + doit("chmod","0644","$tmp/DEBIAN/shlibs"); doit("chown","0:0","$tmp/DEBIAN/shlibs"); } @@ -82,7 +82,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) { doit("rm","-f","$tmp/DEBIAN/md5sums"); } else { - doit("chmod",644,"$tmp/DEBIAN/md5sums"); + doit("chmod", "0644", "$tmp/DEBIAN/md5sums"); doit("chown","0:0","$tmp/DEBIAN/md5sums"); } } @@ -181,7 +181,7 @@ sub make_debug { doit($objcopy, "--only-keep-debug", "--compress-debug-sections", $file, $debug_path); } # No reason for this to be executable. - doit("chmod", 644, $debug_path); + doit("chmod", "0644", $debug_path); return $debug_path; } |