mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-17 16:55:25 +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
|
esac
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
*.zip)
|
||||||
|
if test -e "${PREFIX}/bin/bsdtar"; then
|
||||||
|
bsdtar -xf "${DISTFILES}/${f}"
|
||||||
|
else
|
||||||
|
cp "${DISTFILES}/${f}" .
|
||||||
|
fi
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
cp "${DISTFILES}/${f}" .
|
cp "${DISTFILES}/${f}" .
|
||||||
;;
|
;;
|
||||||
|
|
@ -417,7 +424,7 @@ src_pkg() {
|
||||||
# So this does not need a command -v grep.
|
# So this does not need a command -v grep.
|
||||||
if tar --help | grep ' \-\-sort' >/dev/null 2>&1; then
|
if tar --help | grep ' \-\-sort' >/dev/null 2>&1; then
|
||||||
tar -C "${DESTDIR}" --sort=name --hard-dereference \
|
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
|
else
|
||||||
local olddir
|
local olddir
|
||||||
olddir=$PWD
|
olddir=$PWD
|
||||||
|
|
@ -432,7 +439,7 @@ src_pkg() {
|
||||||
get_files . > ${filelist}
|
get_files . > ${filelist}
|
||||||
fi
|
fi
|
||||||
tar --no-recursion ${null} --files-from "${filelist}" \
|
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"
|
rm -f "$filelist"
|
||||||
cd "$olddir"
|
cd "$olddir"
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue