Commit 49f9bede authored by kay.sievers@vrfy.org's avatar kay.sievers@vrfy.org Committed by Greg KH
Browse files

[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
parent 8481f8ce
......@@ -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 */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment