]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core/device: device_found_node() does not accept DEVICE_FOUND_UDEV
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 29 Apr 2022 13:27:53 +0000 (22:27 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 29 Apr 2022 19:14:10 +0000 (04:14 +0900)
src/core/device.c

index 5d08697accfa592ce660a5f3f143111bc2a60726..3e0fd76f5e63beeb76bf8a20da4826bc61f7e940 100644 (file)
@@ -971,6 +971,7 @@ static int validate_node(const char *node, sd_device **ret) {
 void device_found_node(Manager *m, const char *node, DeviceFound found, DeviceFound mask) {
         assert(m);
         assert(node);
+        assert(!FLAGS_SET(mask, DEVICE_FOUND_UDEV));
 
         if (!udev_available())
                 return;