hardening: fix bug/typo

This commit is contained in:
Charles Strahan
2017-08-08 07:33:40 -04:00
parent 9783a677f3
commit 0937df463f

View File

@@ -13,7 +13,7 @@ done
# array expansion also prevents undefined variables from causing trouble with
# `set -u`.
for flag in ${NIX_HARDENING_ENABLE+}; do
if [[ -n "${hardeningDisableMap[$flag]}" ]]; then
if [[ -z "${hardeningDisableMap[$flag]}" ]]; then
hardeningEnableMap[$flag]=1
fi
done