summaryrefslogtreecommitdiff
path: root/libudev/libudev-monitor.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2009-09-09 18:18:17 +0200
committerKay Sievers <kay.sievers@vrfy.org>2009-09-09 18:49:07 +0200
commit6c29f2b942358d4dd9d3e7c65c13c3612dded3cc (patch)
tree2604ad41d6cd00785e13caa5515996acc3e942ee /libudev/libudev-monitor.c
parent7f06ec2e19387424de34bae35320c2fe192cb69d (diff)
simplify "symlink name stack"
With well defined and kernel-supplied node names, we no longer need to support a possible stack of conflicting symlinks and node names. Only symlinks with identical names can be claimed by multiple devices. This shrinks the former /dev/.udev/names/ significantly. Also the /dev/{block,char}/MAJ:MIN" links are excluded from the name stack - they are unique and can not conflict.
Diffstat (limited to 'libudev/libudev-monitor.c')
-rw-r--r--libudev/libudev-monitor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libudev/libudev-monitor.c b/libudev/libudev-monitor.c
index 657f23d727..ee855afac4 100644
--- a/libudev/libudev-monitor.c
+++ b/libudev/libudev-monitor.c
@@ -628,12 +628,12 @@ retry:
next = strchr(slink, ' ');
while (next != NULL) {
next[0] = '\0';
- udev_device_add_devlink(udev_device, slink);
+ udev_device_add_devlink(udev_device, slink, 0);
slink = &next[1];
next = strchr(slink, ' ');
}
if (slink[0] != '\0')
- udev_device_add_devlink(udev_device, slink);
+ udev_device_add_devlink(udev_device, slink, 0);
} else if (strncmp(key, "DRIVER=", 7) == 0) {
udev_device_set_driver(udev_device, &key[7]);
} else if (strncmp(key, "ACTION=", 7) == 0) {