summaryrefslogtreecommitdiff
path: root/recv
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2018-05-13 12:37:49 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2018-05-13 12:37:49 +0200
commit33c943a5523579d6c2695dea39fd4d864e07170a (patch)
treee512d27bd46bbf803c2c1cc075ae081c2abf47a8 /recv
parent002823adceee104f061a90f2c53f4dffeec73436 (diff)
downloadutils-33c943a5523579d6c2695dea39fd4d864e07170a.tar
utils-33c943a5523579d6c2695dea39fd4d864e07170a.tar.gz
utils-33c943a5523579d6c2695dea39fd4d864e07170a.tar.bz2
utils-33c943a5523579d6c2695dea39fd4d864e07170a.tar.xz
utils-33c943a5523579d6c2695dea39fd4d864e07170a.zip
Bump recv
Diffstat (limited to 'recv')
-rw-r--r--recv8
1 files changed, 4 insertions, 4 deletions
diff --git a/recv b/recv
index 8d28884..bc1f6a1 100644
--- a/recv
+++ b/recv
@@ -1,13 +1,13 @@
1#!@zsh@/bin/zsh 1#!@zsh@/bin/zsh
2 2
3set -e
4
3user="$0" 5user="$0"
4[[ -n "$user" ]] || exit 2 6[[ -n "$user" ]] || exit 2
5 7
6homeDir=$(getent passwd "$user" | cut -f6 -d:) 8recvDir="$(getent passwd "$user" | cut -f6 -d:)/uucppublic"
7recvDir="${homeDir}/uucppublic"
8
9[[ -d "$recvDir" ]] || exit 1 9[[ -d "$recvDir" ]] || exit 1
10 10
11umask 007 11umask 770
12 12
13exec @gnutar@/bin/tar -xv -C $(mktemp -d -p "$recvDir" recv.XXXXXXXXXX) --owner "$user" --no-same-permissions \ No newline at end of file 13exec @gnutar@/bin/tar -xv -C $(mktemp -d -p "$recvDir" recv.XXXXXXXXXX) --owner "$user" --no-same-permissions \ No newline at end of file