hooks/strip-and-debug: do not override file perms.
... otherwise additional perms are lost, always resulting in non setuid bins.
This commit is contained in:
parent
8a95e930d6
commit
dbfb3a2b81
1 changed files with 0 additions and 3 deletions
|
@ -81,7 +81,6 @@ hook() {
|
||||||
fi
|
fi
|
||||||
case "$(file -bi "$f")" in
|
case "$(file -bi "$f")" in
|
||||||
application/x-executable*)
|
application/x-executable*)
|
||||||
chmod 755 "$f"
|
|
||||||
if echo "$(file $f)" | grep -q "statically linked"; then
|
if echo "$(file $f)" | grep -q "statically linked"; then
|
||||||
# static binary
|
# static binary
|
||||||
$STRIP "$f"
|
$STRIP "$f"
|
||||||
|
@ -102,7 +101,6 @@ hook() {
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
application/x-sharedlib*)
|
application/x-sharedlib*)
|
||||||
chmod 755 "$f"
|
|
||||||
# shared library
|
# shared library
|
||||||
make_debug "$f"
|
make_debug "$f"
|
||||||
$STRIP --strip-unneeded "$f"
|
$STRIP --strip-unneeded "$f"
|
||||||
|
@ -122,7 +120,6 @@ hook() {
|
||||||
attach_debug "$f"
|
attach_debug "$f"
|
||||||
;;
|
;;
|
||||||
application/x-archive*)
|
application/x-archive*)
|
||||||
chmod 644 "$f"
|
|
||||||
$STRIP --strip-debug "$f"
|
$STRIP --strip-debug "$f"
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
msg_red "$pkgver: failed to strip ${f#$PKGDESTDIR}\n"
|
msg_red "$pkgver: failed to strip ${f#$PKGDESTDIR}\n"
|
||||||
|
|
Loading…
Reference in a new issue