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