* [PATCH] fix devpath for netdev
@ 2004-04-05 22:33 Kay Sievers
2004-04-08 17:51 ` Greg KH
0 siblings, 1 reply; 2+ messages in thread
From: Kay Sievers @ 2004-04-05 22:33 UTC (permalink / raw)
To: linux-hotplug
[-- Attachment #1: Type: text/plain, Size: 60 bytes --]
Fix the devpath string for unhandled netdev's.
thanks,
Kay
[-- Attachment #2: 01-netdev-db-fix.patch --]
[-- Type: text/plain, Size: 563 bytes --]
===== udev-add.c 1.71 vs edited =====
--- 1.71/udev-add.c Sat Apr 3 01:50:16 2004
+++ edited/udev-add.c Sun Apr 4 19:24:25 2004
@@ -453,6 +453,7 @@
break;
case 'n':
+ strfieldcpy(devpath, path);
if (strcmp(dev.name, dev.kernel_name) != 0) {
retval = rename_net_if(&dev, fake);
if (retval != 0)
@@ -460,7 +461,6 @@
/* netif's are keyed with the configured name, cause
* the original kernel name sleeps with the fishes
*/
- strfieldcpy(devpath, path);
pos = strrchr(devpath, '/');
if (pos != NULL) {
pos[1] = '\0';
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-04-08 17:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-05 22:33 [PATCH] fix devpath for netdev Kay Sievers
2004-04-08 17:51 ` 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).