forked from kiss-community/kiss
kiss: Fix symlink permissions bug
This commit is contained in:
parent
16097a5b98
commit
6f31468c94
6
kiss
6
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
|
||||
|
Loading…
Reference in New Issue
Block a user