linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Kay Sievers <kay.sievers@vrfy.org>
To: linux-hotplug@vger.kernel.org
Subject: [PATCH] fix devpath for netdev
Date: Mon, 05 Apr 2004 22:33:13 +0000	[thread overview]
Message-ID: <20040405223313.GC23018@vrfy.org> (raw)

[-- 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';

             reply	other threads:[~2004-04-05 22:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-05 22:33 Kay Sievers [this message]
2004-04-08 17:51 ` [PATCH] fix devpath for netdev Greg KH

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040405223313.GC23018@vrfy.org \
    --to=kay.sievers@vrfy.org \
    --cc=linux-hotplug@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).