pw: pw_mkdb(3) does not set errno

MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
Sponsored by:	Klara, Inc.
This commit is contained in:
Mark Johnston 2025-10-08 12:47:15 +00:00
parent 4070ae0e9a
commit b464c7a75e

View file

@ -119,7 +119,7 @@ pw_update(struct passwd * pwd, char const * user)
*/
if (pw_mkdb(pw != NULL ? pw->pw_name : NULL) == -1) {
pw_fini();
err(1, "pw_mkdb()");
errx(1, "pw_mkdb()");
}
free(pw);
pw_fini();