summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2015-04-09 08:47:56 +0300
committerTimo Teräs <timo.teras@iki.fi>2015-04-09 08:47:56 +0300
commita6641817147c5fd379245cc080af8bec77315890 (patch)
treecbe7026b417b4feb7adab11af941b5476cc69645
parent248e9bb408985a7591dd97f6c0eea1e1d936379a (diff)
downloadabuild-a6641817147c5fd379245cc080af8bec77315890.tar.bz2
abuild-a6641817147c5fd379245cc080af8bec77315890.tar.xz
abuild: preserve all xattrs
by default getfattr omits system xattrs like security.capability
-rw-r--r--abuild.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/abuild.in b/abuild.in
index 3e7ffaf..3ed5417 100644
--- a/abuild.in
+++ b/abuild.in
@@ -1679,7 +1679,7 @@ stripbin() {
scanelf --recursive --nobanner --etype "ET_DYN,ET_EXEC" . \
| sed -e 's:^ET_DYN ::' -e 's:^ET_EXEC ::' \
| while read filename; do
- XATTR=$(getfattr -d "${filename}")
+ XATTR=$(getfattr --match="*" --dump "${filename}")
${CROSS_COMPILE}strip "${filename}"
[ -n "$XATTR" ] && (echo "$XATTR" | setfattr --restore=-)
done