mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-05-02 12:26:04 -04:00
permssion-hardening: Do not skip config file lines without trailing newline (ancient bash bug)
This commit is contained in:
parent
3910e4ee15
commit
2bdda9d0a0
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue