]> git.ipfire.org Git - thirdparty/lxc.git/commit
strtoul: check errno
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Thu, 24 Oct 2013 16:35:55 +0000 (11:35 -0500)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Thu, 24 Oct 2013 16:35:55 +0000 (11:35 -0500)
commit09bbd74578af3a039325c273a3bd7e54c9c79482
treee78ab6ca770df63755ad8c4336970c2d0dd33fdc
parentf371aca939bd8fab254de6f0a63d141f7550cf57
strtoul: check errno

In a few places we checked for LONG_MIN or LONG_MAX as indication
that strtoul failed.  That's not reliable.  As suggested in the
manpage, switch to checking errno value.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
src/lxc/caps.c
src/lxc/conf.c
src/lxc/utils.c