]> git.ipfire.org Git - thirdparty/systemd.git/commit
Rewrite sd_machine_get_ifindices() to avoid FOREACH_WORD()
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 30 Jul 2020 10:56:51 +0000 (12:56 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 9 Sep 2020 07:34:54 +0000 (09:34 +0200)
commit0ef14adc1c724eee8d5f4db3d298786b209afaa5
treeb3ea62774a5ae0ee69b285f8def952197427178f
parentaa3b40c3f98f28312967b3f9ba1f353efd9c9873
Rewrite sd_machine_get_ifindices() to avoid FOREACH_WORD()

If we fail to parse the index, the failure is propogated as -EUNCLEAN.
(-EINVAL would be confused with invalid args to the function itself.)
man/sd_machine_get_class.xml
src/libsystemd/sd-login/sd-login.c
src/systemd/sd-login.h