From acee3ea6ef4cb96c38543b62535dca9ad98def10 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Sat, 31 Dec 2022 09:31:37 -0700 Subject: [PATCH] Fix logic goof in 05781ba6f1f3, disable replacements when fuzzing. Not the other way around. --- configure | 6 +++--- configure.ac | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/configure b/configure index 23619017d..291ed3c38 100755 --- a/configure +++ b/configure @@ -18118,9 +18118,9 @@ then : fi - # Do not use our replacement functions when fuzzing, it may - # skew the coverage reports. - if test X"$enable_fuzzer" != X"no"; then + # Only use our replacement functions when not fuzzing, + # they may skew the coverage reports. + if test X"$enable_fuzzer" = X"no"; then # glibc's getentropy() emulation may fail on older kernels. # We use our own getentropy() by default on Linux. : ${ac_cv_func_getentropy='no'} diff --git a/configure.ac b/configure.ac index b734ed913..41702cf93 100644 --- a/configure.ac +++ b/configure.ac @@ -2092,9 +2092,9 @@ case "$host" in # We call getrandom via syscall(3) in case it is not in libc AC_CHECK_HEADERS([linux/random.h sys/syscall.h]) - # Do not use our replacement functions when fuzzing, it may - # skew the coverage reports. - if test X"$enable_fuzzer" != X"no"; then + # Only use our replacement functions when not fuzzing, + # they may skew the coverage reports. + if test X"$enable_fuzzer" = X"no"; then # glibc's getentropy() emulation may fail on older kernels. # We use our own getentropy() by default on Linux. : ${ac_cv_func_getentropy='no'}