According man of stroul
RETURN VALUE
The strtoul() function returns either the result of the conversion or, if there was a leading minus sign, the negation of the result
of the conversion represented as an unsigned value, unless the original (non-negated) value would overflow; in the latter case, str-
toul() returns ULONG_MAX and sets the global variable errno to ERANGE. Precisely the same holds for strtoull() (with ULLONG_MAX
instead of ULONG_MAX).
ULONG_MAX is NOT LONG_MAX
So it must not work i guess (2.6.26 release).
Maybe in git it is fixed, dunno, i will check it now.
On Tuesday 29 July 2008, Patrick McHardy wrote: