summaryrefslogtreecommitdiff
path: root/recv
diff options
context:
space:
mode:
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