]> err.no Git - systemd/commitdiff
[PATCH] udev - correct relative symlink
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>
Sat, 28 Feb 2004 08:54:49 +0000 (00:54 -0800)
committerGreg KH <gregkh@suse.de>
Wed, 27 Apr 2005 04:34:28 +0000 (21:34 -0700)
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

udev-add.c

index 2f64b4375ab8019409f289f48b4cb2cd22f14171..8fdd66fad52511d0f1bc9c165608bb160fade14d 100644 (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 */