summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/prepstrip2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/prepstrip b/bin/prepstrip
index e7b07c7aa..bce396899 100755
--- a/bin/prepstrip
+++ b/bin/prepstrip
@@ -50,6 +50,8 @@ save_elf_debug() {
mkdir -p $(dirname "${y}")
${OBJCOPY} --only-keep-debug "${x}" "${y}"
${OBJCOPY} --add-gnu-debuglink="${y}" "${x}"
+ [ -g "${x}" ] && chmod go-r "${y}"
+ [ -u "${x}" ] && chmod go-r "${y}"
chmod a-x,o-w "${y}"
}