]> git.ipfire.org Git - thirdparty/systemd.git/commit
udevadm: check number of passed arguments
authorLennart Poettering <lennart@poettering.net>
Fri, 14 Mar 2025 10:43:07 +0000 (11:43 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 14 Mar 2025 20:12:46 +0000 (05:12 +0900)
commite5dfe2cd8d32c3ddd3ca6763dbbe2d0ea2ab61aa
treeb9318261b2af34311676bd5946b3284951d74e0b
parentd810815ed4e958f95fb935079a3dbf86da5ed474
udevadm: check number of passed arguments

We didn't check the number of arguments first, hence ended up outputting
some ugly complaints with `(null)` in a format string. And what's worse
accepted any number of arguments, where we'd ignore all but the first
two though.
src/udev/udevadm-test-builtin.c