Date: Wed, 09 Feb 2022 13:36:50 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 261828] ifconfig name should not print out the newly set name Message-ID: <bug-261828-227-DdkRnnfKns@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-261828-227@https.bugs.freebsd.org/bugzilla/> References: <bug-261828-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261828 --- Comment #2 from Nick Hibma <nick@van-laarhoven.org> --- ... I missed that printifname is being referenced in ifclone.c as well, whe= re the actual problem that the atexit() fixes is caused. So perhaps only printifname=3D1 in setifname is to be removed from setifname. --- a/sbin/ifconfig/ifconfig.c +++ b/sbin/ifconfig/ifconfig.c @@ -1307,7 +1307,6 @@ setifname(const char *val, int dummy __unused, int= s, free(newname); err(1, "ioctl SIOCSIFNAME (set name)"); } - printifname =3D 1; strlcpy(name, newname, sizeof(name)); free(newname); } seems to do it. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-261828-227-DdkRnnfKns>