fuzzball:~$ /sbin/ifconfig 1234567890123456 1234567890123456=4`@q?H#: unknown interface. Here's the diff to fix it: --- ifconfig.c Fri Jan 8 16:39:25 1999 +++ ifconfig.c Fri Jan 8 16:40:44 1999 @@ -496,7 +496,8 @@ /* No. Fetch the interface name. */ spp = argv; - strncpy(ifr.ifr_name, *spp++, IFNAMSIZ); + strncpy(ifr.ifr_name, *spp++, IFNAMSIZ-1); + ifr.ifr_name[IFNAMSIZ-1]=0; if (*spp == (char *)NULL) { if_print(ifr.ifr_name); (void) close(skfd);
This has been verified to act as the user reports. It is being assigned to a developer.
Already fixed in net-tools-1.49-2.