From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Mon, 05 Apr 2004 22:33:13 +0000 Subject: [PATCH] fix devpath for netdev Message-Id: <20040405223313.GC23018@vrfy.org> MIME-Version: 1 Content-Type: multipart/mixed; boundary="45Z9DzgjV8m4Oswq" List-Id: To: linux-hotplug@vger.kernel.org --45Z9DzgjV8m4Oswq Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Fix the devpath string for unhandled netdev's. thanks, Kay --45Z9DzgjV8m4Oswq Content-Type: text/plain; charset=us-ascii Content-Disposition: inline; filename="01-netdev-db-fix.patch" ===== 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'; --45Z9DzgjV8m4Oswq-- ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&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