hooks/distfiles: do not respect perms/owner when extracting via tar.
With user namespaces and uid/gid == 0, tar will try to respect them and will fail with EINVAL.
This commit is contained in:
parent
0035968141
commit
a786acf4d2
1 changed files with 2 additions and 2 deletions
|
@ -63,7 +63,7 @@ hook() {
|
|||
|
||||
case ${cursufx} in
|
||||
txz|tbz|tlz|tgz)
|
||||
tar xf $srcdir/$curfile -C $extractdir
|
||||
tar -x --no-same-permissions --no-same-owner -f $srcdir/$curfile -C $extractdir
|
||||
if [ $? -ne 0 ]; then
|
||||
msg_error "$pkgver: extracting $curfile into $XBPS_BUILDDIR.\n"
|
||||
fi
|
||||
|
@ -77,7 +77,7 @@ hook() {
|
|||
fi
|
||||
;;
|
||||
tar)
|
||||
tar xf $srcdir/$curfile -C $extractdir
|
||||
tar -x --no-same-permissions --no-same-owner -f $srcdir/$curfile -C $extractdir
|
||||
if [ $? -ne 0 ]; then
|
||||
msg_error "$pkgver: extracting $curfile into $XBPS_BUILDDIR.\n"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue