hardening: fix bug/typo

This commit is contained in:
Charles Strahan 2017-08-08 07:33:40 -04:00
parent 9783a677f3
commit 0937df463f
No known key found for this signature in database
GPG Key ID: BB47AB4B8489B5A5
1 changed files with 1 additions and 1 deletions

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