]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
libc/nss: Ensure that setgroupent(3) actually works as advertised
authorMark Johnston <markj@FreeBSD.org>
Thu, 21 Jan 2021 19:30:19 +0000 (14:30 -0500)
committerMark Johnston <markj@FreeBSD.org>
Thu, 21 Jan 2021 19:30:19 +0000 (14:30 -0500)
commit48a186863431ec7a23c6174bc376cafa59dd5fbf
tree0b6de4bbde8473ab40249f38afd143fdc296615d
parent6e411d8b14ec5402b7551073e2f9edc4d680dd49
libc/nss: Ensure that setgroupent(3) actually works as advertised

Because the "files" and "compat" implementations failed to set the
"stayopen", keyed lookups would close the database handle, contrary to
the purpose of setgroupent(3).  setpassent(3)'s implementation does not
have this bug.

PR: 165527
Submitted by: Andrey Simonenko
MFC after: 1 month
lib/libc/gen/getgrent.c