Skip to content

Commit

Permalink
hardening: Tiny reindent
Browse files Browse the repository at this point in the history
  • Loading branch information
Ericson2314 committed Apr 10, 2018
1 parent 9d97c4b commit f24bf01
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pkgs/build-support/bintools-wrapper/add-hardening.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ if (( "${NIX_DEBUG:-0}" >= 1 )); then
fi
fi

for flag in "${!hardeningEnableMap[@]}"; do
for flag in "${!hardeningEnableMap[@]}"; do
case $flag in
pie)
if [[ ! ("$*" =~ " -shared " || "$*" =~ " -static ") ]]; then
Expand All @@ -55,4 +55,4 @@ fi
# tool supports each flag.
;;
esac
done
done
4 changes: 2 additions & 2 deletions pkgs/build-support/cc-wrapper/add-hardening.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ if (( "${NIX_DEBUG:-0}" >= 1 )); then
fi
fi

for flag in "${!hardeningEnableMap[@]}"; do
for flag in "${!hardeningEnableMap[@]}"; do
case $flag in
fortify)
if (( "${NIX_DEBUG:-0}" >= 1 )); then echo HARDENING: enabling fortify >&2; fi
Expand Down Expand Up @@ -69,4 +69,4 @@ fi
# tool supports each flag.
;;
esac
done
done

0 comments on commit f24bf01

Please sign in to comment.