[lxc-devel] [lxc/lxc] 09bbd7: strtoul: check errno
GitHub
noreply at github.com
Thu Oct 24 16:28:08 UTC 2013
Branch: refs/heads/master
Home: https://github.com/lxc/lxc
Commit: 09bbd74578af3a039325c273a3bd7e54c9c79482
https://github.com/lxc/lxc/commit/09bbd74578af3a039325c273a3bd7e54c9c79482
Author: Serge Hallyn <serge.hallyn at ubuntu.com>
Date: 2013-10-24 (Thu, 24 Oct 2013)
Changed paths:
M src/lxc/caps.c
M src/lxc/conf.c
M src/lxc/utils.c
Log Message:
-----------
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 at ubuntu.com>
More information about the lxc-devel
mailing list