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