summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2004-02-28 00:54:49 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:34:28 -0700
commit49f9bede7c06d7c1c55ea795f3fcf36c95f26668 (patch)
treeb64aa8da97d012db4e36b15a8a5822533bda22e7
parent8481f8ce2bd2b19ebcf3cb96ac6825093f626b0f (diff)
[PATCH] udev - correct relative symlink
Here we remove the useless leading "./" of the linktargets. Thanks to Olaf Hering <olh@suse.de>, who asked why we do this :) We have now: /udev |-- camera0 -> video0 |-- kamera0 -> video0 `-- video0
-rw-r--r--udev-add.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/udev-add.c b/udev-add.c
index 2f64b4375a..8fdd66fad5 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 */