diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2008-11-05 22:13:49 +0100 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2008-11-05 22:13:49 +0100 |
commit | adea2cc22b8b3d645ce2bf5eeef7a08980cc750c (patch) | |
tree | 8bf32883dd3c80ee2790a9ce8dd2aba9fe299eec /udev/udev-event.c | |
parent | 92f4313665bc726baf055f81e2daae48c77123fc (diff) |
$links should be relative
Diffstat (limited to 'udev/udev-event.c')
-rw-r--r-- | udev/udev-event.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/udev/udev-event.c b/udev/udev-event.c index 2d513d7b65..27bb5eb79a 100644 --- a/udev/udev-event.c +++ b/udev/udev-event.c @@ -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; |