]> err.no Git - systemd/commitdiff
skip SYMLINK rules for devices without a device node
authorKay Sievers <kay.sievers@vrfy.org>
Thu, 23 Oct 2008 19:42:23 +0000 (21:42 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Thu, 23 Oct 2008 19:42:23 +0000 (21:42 +0200)
udev/udev-rules.c

index 168867b8a41886774e60c9fb6f601b968636b4eb..22fb2c3857729f4d64b0b1b40f512d9e80fc10fc 100644 (file)
@@ -1984,6 +1984,8 @@ int udev_rules_apply_to_event(struct udev_rules *rules, struct udev_event *event
 
                                if (event->devlink_final)
                                        break;
+                               if (major(udev_device_get_devnum(event->dev)) == 0)
+                                       break;
                                if (cur->key.op == KEY_OP_ASSIGN_FINAL)
                                        event->devlink_final = 1;
                                if (cur->key.op == KEY_OP_ASSIGN || cur->key.op == KEY_OP_ASSIGN_FINAL)