From 6586f0865261a3db68f6542e8a7aa3f74537044b Mon Sep 17 00:00:00 2001 From: "herdiansyah@netc.eu" Date: Tue, 23 Jul 2019 00:16:33 +0000 Subject: cache: set sticky bit too to the children dirs FossilOrigin-Name: 5bead3ea8aa994a6533450f57d36c64443e8527ebabb9827e56e08e247fa9df5 --- kiss | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'kiss') diff --git a/kiss b/kiss index cffb669..6daeaa5 100755 --- a/kiss +++ b/kiss @@ -130,7 +130,9 @@ pkg_sources() { # Store each downloaded source in named after the package it # belongs to. This avoid conflicts between two packages having a # source of the same name. - mkdir -p "$src_dir/$1" && cd "$src_dir/$1" + mkdir -p "$src_dir/$1" + chmod "$src_dir/$1" + cd "$src_dir/$1" # Find the package's repository files. This needs to keep # happening as we can't store this data in any kind of data @@ -1028,6 +1030,9 @@ main() { "${bin_dir:=$cac_dir/bin}" \ || die "Couldn't create cache directories." + # Set sticky bit in the "permanent" directories so users can write to it. + chmod 1777 "$cac_dir" "$src_dir" "$bin_dir" + args "$@" } -- cgit v1.2.3