From: Todd C. Miller Date: Wed, 20 Jan 2016 22:34:00 +0000 (-0700) Subject: Log an error for invalid boolean strings. X-Git-Tag: SUDO_1_8_16^2~53 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=399ec8b2b0081600025af8bf070c7430ad9368b1;p=sudo Log an error for invalid boolean strings. --- diff --git a/lib/util/strtobool.c b/lib/util/strtobool.c index 755501cdc..c3b70ceb4 100644 --- a/lib/util/strtobool.c +++ b/lib/util/strtobool.c @@ -70,5 +70,8 @@ sudo_strtobool_v1(const char *str) debug_return_int(0); break; } + sudo_debug_printf(SUDO_DEBUG_ERROR|SUDO_DEBUG_LINENO, + "invalid boolean value \"%s\"", str); + debug_return_int(-1); }