From 002823adceee104f061a90f2c53f4dffeec73436 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 13 May 2018 12:29:00 +0200 Subject: recv --- recv | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 recv (limited to 'recv') diff --git a/recv b/recv new file mode 100644 index 0000000..8d28884 --- /dev/null +++ b/recv @@ -0,0 +1,13 @@ +#!@zsh@/bin/zsh + +user="$0" +[[ -n "$user" ]] || exit 2 + +homeDir=$(getent passwd "$user" | cut -f6 -d:) +recvDir="${homeDir}/uucppublic" + +[[ -d "$recvDir" ]] || exit 1 + +umask 007 + +exec @gnutar@/bin/tar -xv -C $(mktemp -d -p "$recvDir" recv.XXXXXXXXXX) --owner "$user" --no-same-permissions \ No newline at end of file -- cgit v1.2.3