summaryrefslogtreecommitdiff
path: root/recv
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2018-05-13 12:52:26 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2018-05-13 12:52:26 +0200
commite5d3fd420ff355d8399de0df2f601772951c0e63 (patch)
treecdb36908599180a71ee32e8d1357b39bc7c7f8e6 /recv
parent33c943a5523579d6c2695dea39fd4d864e07170a (diff)
downloadutils-e5d3fd420ff355d8399de0df2f601772951c0e63.tar
utils-e5d3fd420ff355d8399de0df2f601772951c0e63.tar.gz
utils-e5d3fd420ff355d8399de0df2f601772951c0e63.tar.bz2
utils-e5d3fd420ff355d8399de0df2f601772951c0e63.tar.xz
utils-e5d3fd420ff355d8399de0df2f601772951c0e63.zip
Diffstat (limited to 'recv')
-rw-r--r--recv4
1 files changed, 2 insertions, 2 deletions
diff --git a/recv b/recv
index bc1f6a1..ed1e0ed 100644
--- a/recv
+++ b/recv
@@ -2,12 +2,12 @@
2 2
3set -e 3set -e
4 4
5user="$0" 5user="$1"
6[[ -n "$user" ]] || exit 2 6[[ -n "$user" ]] || exit 2
7 7
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 770 11umask 027
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