On Tue, Jan 2, 2018 at 3:06 PM, Ingo Schwarze <schwa...@usta.de> wrote: ...
> OK for the patch at the end? > > Testing - before: > ... > --- args.c 16 Aug 2016 16:44:55 -0000 1.28 > +++ args.c 2 Jan 2018 22:47:19 -0000 > @@ -406,8 +406,9 @@ get_off(char *val) > off_t num, t; > char *expr; > > + errno = 0; > num = strtoll(val, &expr, 0); > - if (num == LLONG_MAX) /* Overflow. */ > + if (num == LLONG_MAX && errno == ERANGE) /* Overflow. */ > err(1, "%s", oper); > if (expr == val) /* No digits. */ > errx(1, "%s: illegal numeric value", oper); > ok guenther@