Avoid compiling some code paths that are unreachable when fuzzing.

This commit is contained in:
Todd C. Miller
2022-12-29 10:40:48 -07:00
parent 8a5e9ffb43
commit 2e9e1c80f5
3 changed files with 80 additions and 62 deletions

View File

@@ -239,8 +239,10 @@ warning(const char *errstr, const char *fmt, va_list ap)
fputs(": ", stderr);
fputs(errstr, stderr);
}
#ifndef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
if (sudo_term_is_raw(fileno(stderr)))
putc('\r', stderr);
#endif
putc('\n', stderr);
}