1
0
mirror of https://codeberg.org/kiss-community/kiss synced 2024-12-25 16:40:07 -07:00

kiss: Run tar with dosu to preserve file suid if set

This commit is contained in:
Dylan Araps 2020-01-28 17:16:39 +02:00
parent f7fdd81634
commit b7aad7f143
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E

2
kiss
View File

@ -865,7 +865,7 @@ pkg_install() {
mkdir -p "$tar_dir/$pkg_name" mkdir -p "$tar_dir/$pkg_name"
# Extract the tar-ball to catch any errors before installation begins. # Extract the tar-ball to catch any errors before installation begins.
tar pxf "$tar_file" -C "$tar_dir/$pkg_name" || dosu tar pxf "'$tar_file'" -C "'$tar_dir/$pkg_name'" ||
die "$pkg_name" "Failed to extract tar-ball" die "$pkg_name" "Failed to extract tar-ball"
log "$pkg_name" "Checking that all dependencies are installed" log "$pkg_name" "Checking that all dependencies are installed"