diff options
Diffstat (limited to 'kiss')
-rwxr-xr-x | kiss | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -1166,9 +1166,12 @@ pkg_fetch() { # ownership of files and directories in the rare # case that the repository is owned by a 3rd user. ( - user=$(stat -c %U "$PWD") + user=$(stat -c %U "$PWD") || user=root - [ "${user:=root}" = root ] || + id -u "$user" >/dev/null 2>&1 || + user=root + + [ "$user" = root ] || log "Dropping permissions to $user for pull" case $su in |