summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiels Thykier <niels@thykier.net>2022-11-20 14:37:23 +0000
committerNiels Thykier <niels@thykier.net>2022-11-20 15:54:33 +0000
commit0fd7c7104ef483e821698d1533e7c1b7d0311aed (patch)
tree61cd00bc48ea10c343fccc116af948075f071eb3
parent5125770831bda144acdd9e4c32aa4d2f95a8c42f (diff)
dh_dwz: Ensure dwz multifile is owned by root:root when root should be used
Signed-off-by: Niels Thykier <niels@thykier.net>
-rwxr-xr-xdh_dwz3
1 files changed, 2 insertions, 1 deletions
diff --git a/dh_dwz b/dh_dwz
index df2e87ee..1334ee09 100755
--- a/dh_dwz
+++ b/dh_dwz
@@ -135,13 +135,14 @@ foreach my $package (@_) {
doit('dwz', @dwz_options, @{$dh{U_PARAMS}}, '--', @{$unique_files});
if ( -f "${tmp}/${m}") {
doit($objcopy, '--compress-debug-sections', "${tmp}/${m}");
+ reset_perm_and_owner(0644, "${tmp}/${m}");
} else {
error("dwz failed to create a multifile as requested") if $create_multifile ne 'auto';
warning("No dwz multifile created, but not explicitly requested either so ignoring it.");
warning("Common issues include no debug information at all (missing -g) and");
warning("compressed debug information (#931891).");
# Clean up after ourselves to avoid leaving empty directories in packages
- doit('rmdir', '-p', '--ignore-fail-on-non-empty', "${tmp}/usr/lib/debug/.dwz/${ma_dir}");
+ doit('rmdir', '-p', '--ignore-fail-on-non-empty', "${tmp}/${dwz_dir}");
}
} else {
xargs($unique_files, 'dwz', @{$dh{U_PARAMS}}, '--');