From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Thu, 26 Feb 2004 22:20:24 +0000 Subject: [PATCH] udev - correct relative symlink Message-Id: <20040226222024.GA29120@vrfy.org> MIME-Version: 1 Content-Type: multipart/mixed; boundary="8t9RHnE3ZwKMSgU+" List-Id: To: linux-hotplug@vger.kernel.org --8t9RHnE3ZwKMSgU+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Here we remove the useless leading "./" of the linktargets. Thanks to Olaf Hering , who asked why we do this :) We have now: /udev |-- camera0 -> video0 |-- kamera0 -> video0 `-- video0 thanks, Kay --8t9RHnE3ZwKMSgU+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline; filename="01-rel-symlink.patch" ===== udev-add.c 1.50 vs edited ===== --- 1.50/udev-add.c Wed Feb 25 01:04:14 2004 +++ edited/udev-add.c Thu Feb 26 23:11:36 2004 @@ -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 */ --8t9RHnE3ZwKMSgU+-- ------------------------------------------------------- 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_id=1356&alloc_id=3438&op=click _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel