libudev: fix return of udev_monitor_filter_add_match_subsystem_devtype()
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 31 Mar 2021 19:28:11 +0000 (21:28 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Thu, 1 Apr 2021 13:59:58 +0000 (14:59 +0100)
commit0f4b6e59bde9e150f07cdff0d5eabe5de959ff7b
treed9f841e60502048c361c00f5fe62601db7b9a254
parent4cf1b415687dd650aa1218e7c33dd28421bc8d81
libudev: fix return of udev_monitor_filter_add_match_subsystem_devtype()

Follow-up for 7117842657c0fc5a3446b6fe158615279cf2d650.

sd_device_monitor_filter_add_match_subsystem_devtype() now returns 1 to signify
that something was done, and 0 to signify that nothing was done, but
udev_monitor_filter_add_match_subsystem_devtype() needs to return 0 as documented.

udev_monitor_filter_add_match_tag() is adjusted to match.

This makes gdm start successfully here again.
Before, it would just not boot, with nothing very obvious in the logs:
gdm[1756]: Gdm: GdmDisplay: Session never registered, failing

Replaces #19171.
src/libudev/libudev-monitor.c