commit:     aff97baa3625cabdf71fea9a0256381282040860
Author:     Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache <DOT> Org>
AuthorDate: Sun Mar  4 02:33:44 2018 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Sun Mar  4 02:40:47 2018 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=aff97baa

prepstrip: Preserve xattr outside of user namespace.

Pass '-m -' to getfattr for including all extended attributes, because
getfattr defaults to including only user.* extended attributes.

Bug: https://bugs.gentoo.org/649524

 bin/ebuild-helpers/prepstrip | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/ebuild-helpers/prepstrip b/bin/ebuild-helpers/prepstrip
index ea5c0dc09..929547ae5 100755
--- a/bin/ebuild-helpers/prepstrip
+++ b/bin/ebuild-helpers/prepstrip
@@ -35,7 +35,7 @@ if [[ ${KERNEL} == linux ]] && ${FEATURES_xattr} ; then
        PRESERVE_XATTR=true
        if type -P getfattr >/dev/null && type -P setfattr >/dev/null ; then
                dump_xattrs() {
-                       getfattr -d --absolute-names "$1"
+                       getfattr -d -m - --absolute-names "$1"
                }
                restore_xattrs() {
                        setfattr --restore=-

Reply via email to