aboutsummaryrefslogtreecommitdiff
path: root/kiss
diff options
context:
space:
mode:
authordylan.araps@gmail.com <dylan.araps@gmail.com>2020-01-21 00:19:05 +0000
committerdylan.araps@gmail.com <dylan.araps@gmail.com>2020-01-21 00:19:05 +0000
commit295a153696ec3f70e33378791344068448800c7c (patch)
treeb57adab072924af4ddee5e4266dec9550de14e41 /kiss
parent8a05fbe415958bba526f57b76ae1bff75906a4e3 (diff)
downloadcpt-295a153696ec3f70e33378791344068448800c7c.tar.gz
kiss: Prevent sticky directories
FossilOrigin-Name: 8887aca8eb214dbe35afd64628afbf9e069d05454870063baad33fe937e5e241
Diffstat (limited to 'kiss')
-rwxr-xr-xkiss5
1 files changed, 3 insertions, 2 deletions
diff --git a/kiss b/kiss
index 602845e..dfd977c 100755
--- a/kiss
+++ b/kiss
@@ -774,8 +774,9 @@ pkg_install() {
# This is repeated multiple times. Better to make it a function.
pkg_rsync() {
- rsync --chown=root:root -WhHKa --no-compress "$1" --exclude /etc \
- "$tar_dir/$pkg_name/" "$KISS_ROOT/"
+ rsync --chown=root:root --chmod=Du-s,Dg-s,Do-s \
+ -WhHKa --no-compress "$1" --exclude /etc \
+ "$tar_dir/$pkg_name/" "$KISS_ROOT/"
}
# Install the package by using 'rsync' and overwrite any existing files