diff --git a/kiss b/kiss index f25c1a9..22aeff4 100755 --- a/kiss +++ b/kiss @@ -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