diff options
author | Niels Thykier <niels@thykier.net> | 2022-11-20 14:37:23 +0000 |
---|---|---|
committer | Niels Thykier <niels@thykier.net> | 2022-11-20 15:54:33 +0000 |
commit | 0fd7c7104ef483e821698d1533e7c1b7d0311aed (patch) | |
tree | 61cd00bc48ea10c343fccc116af948075f071eb3 | |
parent | 5125770831bda144acdd9e4c32aa4d2f95a8c42f (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-x | dh_dwz | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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}}, '--'); |