summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2004-04-08 18:49:27 -0700
committerGreg KH <gregkh@suse.de>2005-04-26 21:35:15 -0700
commita41de03083de75a972ee48dbe2c8c03f5d73cf57 (patch)
tree92e6c317edf36acc74dcbb014c4f8fa339afa2da
parent4b06c852cb7da274b50f665a75367f901d8064ae (diff)
[PATCH] fix devpath for netdev
Fix the devpath string for unhandled netdev's.
-rw-r--r--udev-add.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/udev-add.c b/udev-add.c
index 5dc46cf2a7..900e4795aa 100644
--- a/udev-add.c
+++ b/udev-add.c
@@ -453,6 +453,7 @@ int udev_add_device(char *path, char *subsystem, int fake)
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 @@ int udev_add_device(char *path, char *subsystem, int fake)
/* 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';