From: Kay Sievers Date: Thu, 23 Oct 2008 19:42:23 +0000 (+0200) Subject: skip SYMLINK rules for devices without a device node X-Git-Tag: 174~1391 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=548459e9393c5b76db1686af2cc79156b9bf2cb9;p=systemd skip SYMLINK rules for devices without a device node --- diff --git a/udev/udev-rules.c b/udev/udev-rules.c index 168867b8..22fb2c38 100644 --- a/udev/udev-rules.c +++ b/udev/udev-rules.c @@ -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)