summaryrefslogtreecommitdiff
path: root/recv
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2018-05-13 13:03:44 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2018-05-13 13:03:44 +0200
commitfc2d60f963f6388bdfb56b32c84afa1ee5c0f887 (patch)
tree7494f850451898cc5e2e1eb29ab566eb7bfbe3ac /recv
parente5d3fd420ff355d8399de0df2f601772951c0e63 (diff)
downloadutils-fc2d60f963f6388bdfb56b32c84afa1ee5c0f887.tar
utils-fc2d60f963f6388bdfb56b32c84afa1ee5c0f887.tar.gz
utils-fc2d60f963f6388bdfb56b32c84afa1ee5c0f887.tar.bz2
utils-fc2d60f963f6388bdfb56b32c84afa1ee5c0f887.tar.xz
utils-fc2d60f963f6388bdfb56b32c84afa1ee5c0f887.zip
Permissions
Diffstat (limited to 'recv')
-rw-r--r--recv7
1 files changed, 5 insertions, 2 deletions
diff --git a/recv b/recv
index ed1e0ed..1230ae0 100644
--- a/recv
+++ b/recv
@@ -8,6 +8,9 @@ user="$1"
8recvDir="$(getent passwd "$user" | cut -f6 -d:)/uucppublic" 8recvDir="$(getent passwd "$user" | cut -f6 -d:)/uucppublic"
9[[ -d "$recvDir" ]] || exit 1 9[[ -d "$recvDir" ]] || exit 1
10 10
11umask 027 11recvDir=$(mktemp -d -p "$recvDir" recv.XXXXXXXXXX)
12chown "$user" "$recvDir"
13chmod 750 "$recvDir"
12 14
13exec @gnutar@/bin/tar -xv -C $(mktemp -d -p "$recvDir" recv.XXXXXXXXXX) --owner "$user" --no-same-permissions \ No newline at end of file 15umask 027
16exec @gnutar@/bin/tar -xv -C "$recvDir" --owner "$user" --no-same-permissions \ No newline at end of file