* [PATCH] udev - correct relative symlink
@ 2004-02-26 22:20 Kay Sievers
2004-02-28 0:55 ` Greg KH
0 siblings, 1 reply; 2+ messages in thread
From: Kay Sievers @ 2004-02-26 22:20 UTC (permalink / raw)
To: linux-hotplug
[-- Attachment #1: Type: text/plain, Size: 222 bytes --]
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
thanks,
Kay
[-- Attachment #2: 01-rel-symlink.patch --]
[-- Type: text/plain, Size: 354 bytes --]
===== 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 */
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] udev - correct relative symlink
2004-02-26 22:20 [PATCH] udev - correct relative symlink Kay Sievers
@ 2004-02-28 0:55 ` Greg KH
0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2004-02-28 0:55 UTC (permalink / raw)
To: linux-hotplug
On Thu, Feb 26, 2004 at 11:20:24PM +0100, Kay Sievers wrote:
> 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
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_id\x1356&alloc_id438&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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-02-28 0:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-26 22:20 [PATCH] udev - correct relative symlink Kay Sievers
2004-02-28 0:55 ` Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).