summaryrefslogtreecommitdiff
path: root/Library/move.sh
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2014-06-13 01:31:54 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2014-06-13 01:31:54 -0700
commitb132a9721b0c0bc21158e5d33445e0bf700f97b0 (patch)
tree536407c6bdf11e2a235197b8b887cc590459d9bd /Library/move.sh
parentcd701a7b2beb7bf3e60047c65c8445df12e30d09 (diff)
Fix permissions of _.* containers on new stashes.
Diffstat (limited to 'Library/move.sh')
-rwxr-xr-xLibrary/move.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/Library/move.sh b/Library/move.sh
index c0fc10c..98d9986 100755
--- a/Library/move.sh
+++ b/Library/move.sh
@@ -24,6 +24,9 @@ function mv_() {
tmp=$(mktemp -d /var/stash/_.XXXXXX)
dst=${tmp}/${src##*/}
+ chmod 755 "${tmp}"
+ chown root.admin "${tmp}"
+
mkdir -- "${dst}" || {
rmdir -- "${tmp}"
exit 1