2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-09-06 01:05:43 +00:00

set errno to ERANGE not EOVERFLOW on range error

This commit is contained in:
Todd C. Miller
2017-02-15 10:51:39 -07:00
parent 635f330a43
commit 8bffd09881

View File

@@ -108,6 +108,6 @@ parse_timeout(const char *timestr)
debug_return_int(timeout); debug_return_int(timeout);
overflow: overflow:
errno = EOVERFLOW; errno = ERANGE;
debug_return_int(-1); debug_return_int(-1);
} }