From 399ec8b2b0081600025af8bf070c7430ad9368b1 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Wed, 20 Jan 2016 15:34:00 -0700 Subject: [PATCH] Log an error for invalid boolean strings. --- lib/util/strtobool.c | 3 +++ 1 file changed, 3 insertions(+) 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); } -- 2.40.0