]> granicus.if.org Git - sudo/commitdiff
set errno to ERANGE not EOVERFLOW on range error
authorTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 15 Feb 2017 17:51:39 +0000 (10:51 -0700)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 15 Feb 2017 17:51:39 +0000 (10:51 -0700)
plugins/sudoers/timeout.c

index 8d6cbfd2d1093e970d474b5a0f8098acd78bd0ff..baddeadcd18c7de9e2c68cce6f16a99c253a3fed 100644 (file)
@@ -108,6 +108,6 @@ parse_timeout(const char *timestr)
 
     debug_return_int(timeout);
 overflow:
-    errno = EOVERFLOW;
+    errno = ERANGE;
     debug_return_int(-1);
 }