aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordylan.araps@gmail.com <dylan.araps@gmail.com>2020-01-28 15:16:39 +0000
committerdylan.araps@gmail.com <dylan.araps@gmail.com>2020-01-28 15:16:39 +0000
commit888d7ba884fc71256350d59b217c70522484f527 (patch)
tree2149f8a1a47710d4f50ef826098e9a85baeb3549
parentd206e724c150bc3aebefa464675290c8faabf163 (diff)
downloadcpt-888d7ba884fc71256350d59b217c70522484f527.tar.gz
kiss: Run tar with dosu to preserve file suid if set
FossilOrigin-Name: 199f5b49ce649471c22a6dcba48fd780d7efe8b65945f337e53a89c0878a294f
-rwxr-xr-xkiss2
1 files changed, 1 insertions, 1 deletions
diff --git a/kiss b/kiss
index d3fee4a..730e8f7 100755
--- a/kiss
+++ b/kiss
@@ -865,7 +865,7 @@ pkg_install() {
mkdir -p "$tar_dir/$pkg_name"
# 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"
log "$pkg_name" "Checking that all dependencies are installed"