diff options
Diffstat (limited to 'recv')
-rw-r--r-- | recv | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -8,6 +8,9 @@ user="$1" | |||
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 027 | 11 | recvDir=$(mktemp -d -p "$recvDir" recv.XXXXXXXXXX) |
12 | chown "$user" "$recvDir" | ||
13 | chmod 750 "$recvDir" | ||
12 | 14 | ||
13 | exec @gnutar@/bin/tar -xv -C $(mktemp -d -p "$recvDir" recv.XXXXXXXXXX) --owner "$user" --no-same-permissions \ No newline at end of file | 15 | umask 027 |
16 | exec @gnutar@/bin/tar -xv -C "$recvDir" --owner "$user" --no-same-permissions \ No newline at end of file | ||