summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2007-02-27 17:00:59 +0000
committersam <sam@FreeBSD.org>2007-02-27 17:00:59 +0000
commitadee842450911645d2c4da8fc08e135cdaea922d (patch)
tree6a5ff2c8c41f54024786faa8debb0aa725b58049
parentea12bd93e4859022ab4a0bc40a5f235624736915 (diff)
downloadFreeBSD-src-adee842450911645d2c4da8fc08e135cdaea922d.zip
FreeBSD-src-adee842450911645d2c4da8fc08e135cdaea922d.tar.gz
unbreak create operation, must copy argument to global name
Spotted by: des
-rw-r--r--sbin/ifconfig/ifconfig.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sbin/ifconfig/ifconfig.c b/sbin/ifconfig/ifconfig.c
index 3860bd5..6cd8d69 100644
--- a/sbin/ifconfig/ifconfig.c
+++ b/sbin/ifconfig/ifconfig.c
@@ -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);
}
OpenPOWER on IntegriCloud