HomeFreeBSD

libc/nss: Ensure that setgroupent(3) actually works as advertised

Description

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

(cherry picked from commit 48a186863431ec7a23c6174bc376cafa59dd5fbf)

Details

Provenance
markjAuthored on Jan 21 2021, 7:30 PM
Parents
rG31f3fbbcd484: libc/nss tests: Add regression tests for commit 55444c823e1f
Branches
Unknown
Tags
Unknown