diff options
Diffstat (limited to 'recv')
-rw-r--r-- | recv | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2,12 +2,12 @@ | |||
2 | 2 | ||
3 | set -e | 3 | set -e |
4 | 4 | ||
5 | user="$0" | 5 | user="$1" |
6 | [[ -n "$user" ]] || exit 2 | 6 | [[ -n "$user" ]] || exit 2 |
7 | 7 | ||
8 | recvDir="$(getent passwd "$user" | cut -f6 -d:)/uucppublic" | 8 | recvDir="$(getent passwd "$user" | cut -f6 -d:)/uucppublic" |
9 | [[ -d "$recvDir" ]] || exit 1 | 9 | [[ -d "$recvDir" ]] || exit 1 |
10 | 10 | ||
11 | umask 770 | 11 | umask 027 |
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 |