diff options
author | kay.sievers@vrfy.org <kay.sievers@vrfy.org> | 2004-04-08 18:49:27 -0700 |
---|---|---|
committer | Greg KH <gregkh@suse.de> | 2005-04-26 21:35:15 -0700 |
commit | a41de03083de75a972ee48dbe2c8c03f5d73cf57 (patch) | |
tree | 92e6c317edf36acc74dcbb014c4f8fa339afa2da /udev-add.c | |
parent | 4b06c852cb7da274b50f665a75367f901d8064ae (diff) |
[PATCH] fix devpath for netdev
Fix the devpath string for unhandled netdev's.
Diffstat (limited to 'udev-add.c')
-rw-r--r-- | udev-add.c | 2 |
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'; |