From a41de03083de75a972ee48dbe2c8c03f5d73cf57 Mon Sep 17 00:00:00 2001 From: "kay.sievers@vrfy.org" Date: Thu, 8 Apr 2004 18:49:27 -0700 Subject: [PATCH] [PATCH] fix devpath for netdev Fix the devpath string for unhandled netdev's. --- udev-add.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/udev-add.c b/udev-add.c index 5dc46cf2..900e4795 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'; -- 2.39.5