mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-01-07 05:50:41 +07:00
permssion-hardening: Do not skip config file lines without trailing newline (ancient bash bug)
This commit is contained in:
parent
3910e4ee15
commit
2bdda9d0a0
@ -235,7 +235,7 @@ add_nosuid_statoverride_entry() {
|
||||
set_file_perms() {
|
||||
echo "INFO: START parsing config_file: '$config_file'"
|
||||
local line
|
||||
while read -r line; do
|
||||
while read -r line || [[ -n "${line}" ]]; do
|
||||
if [ "$line" = "" ]; then
|
||||
continue
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user