udev - correct relative symlink
PATCH 1/1 udev - correct relative symlink
Here we remove the useless leading "./" of the linktargets. Thanks to Olaf Hering <[email protected]>, who asked why we do this :)
We have now:
/udev
|-- camera0 -> video0
|-- kamera0 -> video0
`-- video0
thanks,
Kay
===== udev-add.c 1.50 vs edited =====
udev-add.c +0 -2
@@ -247,8 +247,6 @@ i++; } -if (linktarget[0 ] =='\0' ) -strfieldcpy (linktarget,"./" );strfieldcat (linktarget, &dev->name[tail]);/* unlink existing files to ensure that our symlink is created */
Greg KH
AppliedQuoted 9 lines · Kay Sievers
Here we remove the useless leading "./" of the linktargets. Thanks to Olaf Hering <[email protected]>, who asked why we do this :)
We have now:
/udev
|-- camera0 -> video0
|-- kamera0 -> video0
`-- video0
Applied, thanks.
greg k-h
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id56&alloc_id438&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel