projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee6dea0
)
remove readable bits for debug files if the souce ELF is setXid (trunk r7210)
author
Zac Medico
<zmedico@gentoo.org>
Wed, 11 Jul 2007 17:53:22 +0000
(17:53 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Wed, 11 Jul 2007 17:53:22 +0000
(17:53 -0000)
svn path=/main/branches/2.1.2/; revision=7232
bin/prepstrip
patch
|
blob
|
history
diff --git
a/bin/prepstrip
b/bin/prepstrip
index e7b07c7aa84e35e682a7d2f1e6520a92cb81742e..bce39689929c9b321a06f616235c37ba138545e4 100755
(executable)
--- 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}"
}