]> err.no Git - systemd/commitdiff
$links should be relative
authorKay Sievers <kay.sievers@vrfy.org>
Wed, 5 Nov 2008 21:13:49 +0000 (22:13 +0100)
committerKay Sievers <kay.sievers@vrfy.org>
Wed, 5 Nov 2008 21:13:49 +0000 (22:13 +0100)
udev/udev-event.c

index 2d513d7b656b00abd44cf03d5f923306e9b328e9..27bb5eb79ac545e6f60fdc29bf2f83752f3e436e 100644 (file)
@@ -394,13 +394,14 @@ found:
                        break;
                case SUBST_LINKS:
                        {
+                               size_t devlen = strlen(udev_get_dev_path(event->udev))+1;
                                struct udev_list_entry *list_entry;
 
                                list_entry = udev_device_get_devlinks_list_entry(dev);
-                               util_strlcat(string, udev_list_entry_get_name(list_entry), maxsize);
+                               util_strlcat(string, &udev_list_entry_get_name(list_entry)[devlen], maxsize);
                                udev_list_entry_foreach(list_entry, udev_list_entry_get_next(list_entry)) {
                                        util_strlcat(string, " ", maxsize);
-                                       util_strlcat(string, udev_list_entry_get_name(list_entry), maxsize);
+                                       util_strlcat(string, &udev_list_entry_get_name(list_entry)[devlen], maxsize);
                                }
                        }
                        break;