unbreak create operation, must copy argument to global name

Spotted by:	des
This commit is contained in:
sam 2007-02-27 17:00:59 +00:00
parent ea12bd93e4
commit adee842450

View File

@ -239,6 +239,7 @@ main(int argc, char *argv[])
*/
if (argc > 0 && (strcmp(argv[0], "create") == 0 ||
strcmp(argv[0], "plumb") == 0)) {
(void) strlcpy(name, ifname, sizeof(name));
ifconfig(argc, argv, NULL);
exit(0);
}