2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 14:25:15 +00:00

Log an error for invalid boolean strings.

This commit is contained in:
Todd C. Miller
2016-01-20 15:34:00 -07:00
parent 5bae35c05c
commit 399ec8b2b0

View File

@@ -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);
}