strtonum: Do not abort on EINVAL from strtoi()

With musl libc strtoimax(".", ...) returns EINVAL.

Closes: !28
Signed-off-by: Guillem Jover <guillem@hadrons.org>
This commit is contained in:
Duncan Overbruck 2024-03-05 17:02:32 +01:00 committed by Guillem Jover
parent ee63bca525
commit e848f5aa29

View File

@ -58,6 +58,7 @@ strtonum(const char *nptr, long long minval, long long maxval,
return rv;
case ECANCELED:
case ENOTSUP:
case EINVAL:
goto out;
case ERANGE:
if (*eptr)