blob: ed1e0ed16cb68d8caac3daa2c1b2efd158c01241 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!@zsh@/bin/zsh
set -e
user="$1"
[[ -n "$user" ]] || exit 2
recvDir="$(getent passwd "$user" | cut -f6 -d:)/uucppublic"
[[ -d "$recvDir" ]] || exit 1
umask 027
exec @gnutar@/bin/tar -xv -C $(mktemp -d -p "$recvDir" recv.XXXXXXXXXX) --owner "$user" --no-same-permissions
|