kiss: Fix symlink permissions bug

This commit is contained in:
Dylan Araps 2020-04-22 17:47:13 +03:00
parent 16097a5b98
commit 6f31468c94
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E

6
kiss
View File

@ -844,11 +844,7 @@ pkg_install_files() {
# Preserve permissions by using chmod. This runs after
# chown as chown will reset suid/guid when ownership changes.
#
# This only runs on non-directories as we desire the reset
# behavior mentioned above. This may fail (broken symlinks)
# and this is fine.
[ -d "$line" ] || chmod "$perms" "$line" 2>/dev/null ||:
[ -L "$line" ] || [ -d "$line" ] || chmod "$perms" "$line"
printf '%s %s (%s)\e[J\r' "$3" "$i/$man_tot" "$line"
done