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