From: kay.sievers@vrfy.org Date: Sat, 28 Feb 2004 08:54:49 +0000 (-0800) Subject: [PATCH] udev - correct relative symlink X-Git-Tag: 019~4 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=49f9bede7c06d7c1c55ea795f3fcf36c95f26668;p=systemd [PATCH] udev - correct relative symlink Here we remove the useless leading "./" of the linktargets. Thanks to Olaf Hering , who asked why we do this :) We have now: /udev |-- camera0 -> video0 |-- kamera0 -> video0 `-- video0 --- diff --git a/udev-add.c b/udev-add.c index 2f64b437..8fdd66fa 100644 --- a/udev-add.c +++ b/udev-add.c @@ -251,8 +251,6 @@ static int create_node(struct udevice *dev, int fake) i++; } - if (linktarget[0] == '\0') - strfieldcpy(linktarget, "./"); strfieldcat(linktarget, &dev->name[tail]); /* unlink existing files to ensure that our symlink is created */