HomeFreeBSD

login: Use getpwnam_r() instead of getpwnam().

Description

login: Use getpwnam_r() instead of getpwnam().

Since we expect the entry to still be valid after calling into PAM,
which may call getpwnam() itself, we need to use getpwnam_r().

MFC after: 1 week
Sponsored by: Klara, Inc.
Reviewed by: kevans, imp, allanjude, markj
Differential Revision: https://reviews.freebsd.org/D43376

Details

Provenance
desAuthored on Jan 12 2024, 3:40 PM
Reviewer
kevans
Differential Revision
D43376: login: Use getpwnam_r() instead of getpwnam().
Parents
rGe007b89e9d31: tests: add a test for shutdown(2) on a datagram socket
Branches
Unknown
Tags
Unknown