[PATCH alternative] swapon: adhere swap priority in fstab

Denys Vlasenko vda.linux at googlemail.com
Thu Aug 8 08:19:10 UTC 2013


On Mon, Aug 5, 2013 at 1:36 AM, Tito <farmatito at tiscali.it> wrote:
> BTW: Denys, due to my limited understanding of  this complex issues i wonder why
>          we handle 1111xxxx as an ERANGE error in bb_strtonum.c

Because it's useful to differentiate strings like
"NNN ...", "NNN,....", "NNN)...", "NNN\n" etc which are often valid
when you parse a line with many elements,
from "NNNNfoo" where foo are letters - these are almost always
clearly bogus.


More information about the busybox mailing list