Fix the devpath string for unhandled netdev's.
+ strfieldcpy(devpath, path);
if (strcmp(dev.name, dev.kernel_name) != 0) {
retval = rename_net_if(&dev, fake);
if (retval != 0)
if (strcmp(dev.name, dev.kernel_name) != 0) {
retval = rename_net_if(&dev, fake);
if (retval != 0)
/* netif's are keyed with the configured name, cause
* the original kernel name sleeps with the fishes
*/
/* 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';
pos = strrchr(devpath, '/');
if (pos != NULL) {
pos[1] = '\0';