workaround systems without grep -q
authorHanno <hanno@gentoo.org>
Sun, 12 Oct 2014 17:26:09 +0000 (19:26 +0200)
committerHanno <hanno@gentoo.org>
Sun, 12 Oct 2014 17:26:09 +0000 (19:26 +0200)
bashcheck

index b76bf5c..d83c8e3 100755 (executable)
--- a/bashcheck
+++ b/bashcheck
@@ -55,7 +55,7 @@ fi
 
 $($bash -c "true $(printf '<<EOF %.0s' {1..80})" 2>$tmpdir/bashcheck.tmp)
 ret=$?
-grep -q AddressSanitizer $tmpdir/bashcheck.tmp
+grep AddressSanitizer $tmpdir/bashcheck.tmp > /dev/null
 if [ $? == 0 ] || [ $ret == 139 ]; then
        warn "CVE-2014-7186 (redir_stack bug)"
 else