summaryrefslogtreecommitdiff
path: root/udev
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2008-10-23 21:42:23 +0200
committerKay Sievers <kay.sievers@vrfy.org>2008-10-23 21:42:23 +0200
commit548459e9393c5b76db1686af2cc79156b9bf2cb9 (patch)
tree0d18b1c43faec6abcc24af3e67a20dfa98f09f8a /udev
parent7aeeaedc5f73fa304849b8768de455ab5dae49a4 (diff)
skip SYMLINK rules for devices without a device node
Diffstat (limited to 'udev')
-rw-r--r--udev/udev-rules.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/udev/udev-rules.c b/udev/udev-rules.c
index 168867b8a4..22fb2c3857 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)