]> git.ipfire.org Git - thirdparty/systemd.git/commit
udevadm-control: check if control command really specified
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 4 Apr 2024 17:51:34 +0000 (02:51 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 16 Apr 2024 00:42:20 +0000 (09:42 +0900)
commitb2800ec597a796b99508c1fbed51b55d17fa5229
tree752ce28e7276d4345c80e8a89d84013b0fd075a1
parent6c15a28454c80a4d777b1b59826893ab5901b75d
udevadm-control: check if control command really specified

Previously, 'udevadm control' only checked the number of the arguments.
So, if only `--timeout` is specified, it spuriously did nothing and succeeded.
This makes the command request at least one control command.
src/udev/udevadm-control.c
test/units/testsuite-17.10.sh