summaryrefslogtreecommitdiff
path: root/udev/udev-rules.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2010-12-14 11:27:02 +0100
committerKay Sievers <kay.sievers@vrfy.org>2010-12-14 11:27:02 +0100
commitff0e1f4e5d897a0ddbf365e920c0e28a6657abaa (patch)
tree35436cbfff494af264646e8d6358baba17418713 /udev/udev-rules.c
parent14996e80d4b002dbbef9721b936fe29155375fb1 (diff)
check ifindex > 0 instead of subsystem == "net"
Diffstat (limited to 'udev/udev-rules.c')
-rw-r--r--udev/udev-rules.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/udev/udev-rules.c b/udev/udev-rules.c
index ab7b6aedb9..6b473c4c2e 100644
--- a/udev/udev-rules.c
+++ b/udev/udev-rules.c
@@ -2080,7 +2080,7 @@ int udev_rules_apply_to_event(struct udev_rules *rules, struct udev_event *event
can_set_name = ((strcmp(udev_device_get_action(event->dev), "remove") != 0) &&
(major(udev_device_get_devnum(event->dev)) > 0 ||
- strcmp(udev_device_get_subsystem(event->dev), "net") == 0));
+ udev_device_get_ifindex(event->dev) > 0));
/* loop through token list, match, run actions or forward to next rule */
cur = &rules->tokens[0];