diff options
Diffstat (limited to 'recv')
-rw-r--r-- | recv | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -0,0 +1,13 @@ | |||
1 | #!@zsh@/bin/zsh | ||
2 | |||
3 | user="$0" | ||
4 | [[ -n "$user" ]] || exit 2 | ||
5 | |||
6 | homeDir=$(getent passwd "$user" | cut -f6 -d:) | ||
7 | recvDir="${homeDir}/uucppublic" | ||
8 | |||
9 | [[ -d "$recvDir" ]] || exit 1 | ||
10 | |||
11 | umask 007 | ||
12 | |||
13 | exec @gnutar@/bin/tar -xv -C $(mktemp -d -p "$recvDir" recv.XXXXXXXXXX) --owner "$user" --no-same-permissions \ No newline at end of file | ||