diff options
Diffstat (limited to 'dh_gencontrol')
-rwxr-xr-x | dh_gencontrol | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/dh_gencontrol b/dh_gencontrol index 887d35c2..4edb065f 100755 --- a/dh_gencontrol +++ b/dh_gencontrol @@ -126,8 +126,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) { doit("dpkg-gencontrol", "-p${package}", "-l$changelog", "-T$substvars", "-P${dbgsym_tmp}",@{$dh{U_PARAMS}}, @dbgsym_options); - doit("chmod","0644","${dbgsym_tmp}/DEBIAN/control"); - doit("chown","0:0","${dbgsym_tmp}/DEBIAN/control"); + reset_perm_and_owner('0644', "${dbgsym_tmp}/DEBIAN/control"); } elsif ($build_ids) { # Only include the build-id if there is no dbgsym package (if # there is a dbgsym package, the build-ids into the control @@ -141,9 +140,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) { # This chmod is only necessary if the user sets the umask to # something odd. - doit("chmod","0644","$tmp/DEBIAN/control"); - - doit("chown","0:0","$tmp/DEBIAN/control"); + reset_perm_and_owner('0644', "${tmp}/DEBIAN/control"); } sub read_dbgsym_file { |