Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Oct 2025 13:01:37 GMT
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: b464c7a75e30 - main - pw: pw_mkdb(3) does not set errno
Message-ID:  <202510081301.598D1bkV008602@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=b464c7a75e30e6149906458075b7eaf0841c7222

commit b464c7a75e30e6149906458075b7eaf0841c7222
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2025-10-08 12:47:15 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2025-10-08 12:49:45 +0000

    pw: pw_mkdb(3) does not set errno
    
    MFC after:      1 week
    Sponsored by:   The FreeBSD Foundation
    Sponsored by:   Klara, Inc.
---
 usr.sbin/pw/pwupd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/usr.sbin/pw/pwupd.c b/usr.sbin/pw/pwupd.c
index 89c1553c8c92..845a607ab1cb 100644
--- a/usr.sbin/pw/pwupd.c
+++ b/usr.sbin/pw/pwupd.c
@@ -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();



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202510081301.598D1bkV008602>