hardening: fix bug/typo

This commit is contained in:
Charles Strahan
2018-03-06 00:30:08 -05:00
parent 9783a677f3
commit 0937df463f
@@ -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