From: kay.sievers@vrfy.org Date: Fri, 9 Apr 2004 01:49:27 +0000 (-0700) Subject: [PATCH] fix devpath for netdev X-Git-Tag: 025~24 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a41de03083de75a972ee48dbe2c8c03f5d73cf57;p=systemd [PATCH] fix devpath for netdev Fix the devpath string for unhandled netdev's. --- 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';