mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-04 02:15:24 +01:00
Allow the use of setuid binaries
This commit is contained in:
parent
31198f304d
commit
288ee37bf0
1 changed files with 9 additions and 2 deletions
|
|
@ -312,6 +312,13 @@ extract_file() {
|
|||
esac
|
||||
fi
|
||||
;;
|
||||
*.zip)
|
||||
if test -e "${PREFIX}/bin/bsdtar"; then
|
||||
bsdtar -xf "${DISTFILES}/${f}"
|
||||
else
|
||||
cp "${DISTFILES}/${f}" .
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
cp "${DISTFILES}/${f}" .
|
||||
;;
|
||||
|
|
@ -417,7 +424,7 @@ src_pkg() {
|
|||
# So this does not need a command -v grep.
|
||||
if tar --help | grep ' \-\-sort' >/dev/null 2>&1; then
|
||||
tar -C "${DESTDIR}" --sort=name --hard-dereference \
|
||||
--numeric-owner --owner=0 --group=0 --mode=go=rX,u+rw,a-s -cf "${dest_tar}" .
|
||||
--numeric-owner --owner=0 --group=0 --mode=go=rX,u+rw -cf "${dest_tar}" .
|
||||
else
|
||||
local olddir
|
||||
olddir=$PWD
|
||||
|
|
@ -432,7 +439,7 @@ src_pkg() {
|
|||
get_files . > ${filelist}
|
||||
fi
|
||||
tar --no-recursion ${null} --files-from "${filelist}" \
|
||||
--numeric-owner --owner=0 --group=0 --mode=go=rX,u+rw,a-s -cf "${dest_tar}"
|
||||
--numeric-owner --owner=0 --group=0 --mode=go=rX,u+rw -cf "${dest_tar}"
|
||||
rm -f "$filelist"
|
||||
cd "$olddir"
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue