]> git.ipfire.org Git - thirdparty/systemd.git/commit
udev: Allow acpi_index and index to be "0"
authorJoe Hershberger <joe.hershberger@ni.com>
Fri, 28 Sep 2018 20:32:35 +0000 (15:32 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 2 Oct 2018 20:58:15 +0000 (22:58 +0200)
commitd81186ef4f6a888a70f20a1e73a812d6acb9e22f
treec237abfa3f1034f8c7f52b3403a24bee81dd0b06
parentbca676e3d32defef35620e3ee6dbd17d36035401
udev: Allow acpi_index and index to be "0"

0 can be a valid index returned by the BIOS, so allow that by using the
parsing function safe_atolu() to check for errors without excluding the
valid value "0".

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
src/udev/udev-builtin-net_id.c