From 8bffd0988115601733fe74bec6a43ab51a745b6a Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Wed, 15 Feb 2017 10:51:39 -0700 Subject: [PATCH] set errno to ERANGE not EOVERFLOW on range error --- plugins/sudoers/timeout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/sudoers/timeout.c b/plugins/sudoers/timeout.c index 8d6cbfd2d..baddeadcd 100644 --- a/plugins/sudoers/timeout.c +++ b/plugins/sudoers/timeout.c @@ -108,6 +108,6 @@ parse_timeout(const char *timestr) debug_return_int(timeout); overflow: - errno = EOVERFLOW; + errno = ERANGE; debug_return_int(-1); } -- 2.40.0