[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
This commit is contained in:
kay.sievers@vrfy.org 2004-02-28 00:54:49 -08:00 committed by Greg KH
parent 8481f8ce2b
commit 49f9bede7c
1 changed files with 0 additions and 2 deletions

View File

@ -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 */