Expose groups by default in ifconfig output. This was never hidden by

OpenBSD; unsure why we chose to do so. As groups are a requirement for
pf, exposing them by default will make our pf implementation less
confusing.

While here add a missing free() that OpenBSD fixed 7 years ago.

PR:		194925
Differential Revision:	https://reviews.freebsd.org/D1185
Approved by:	des
Obtained from:	OpenBSD
This commit is contained in:
Mark Felder 2014-11-19 13:57:39 +00:00
parent 7b56cc430a
commit 46ad509bf8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=274710

View File

@ -86,9 +86,6 @@ getifgroups(int s)
struct ifgroupreq ifgr;
struct ifg_req *ifg;
if (!verbose)
return;
memset(&ifgr, 0, sizeof(ifgr));
strlcpy(ifgr.ifgr_name, name, IFNAMSIZ);
@ -121,6 +118,8 @@ getifgroups(int s)
}
if (cnt)
printf("\n");
free(ifgr.ifgr_groups);
}
static void