The branch main has been updated by bapt:

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

commit cd575d557bc090cc9fff41b085bd0aee40a42c38
Author:     Baptiste Daroussin <[email protected]>
AuthorDate: 2026-09-04 14:03:00 +0000
Commit:     Baptiste Daroussin <[email protected]>
CommitDate: 2026-09-04 14:28:47 +0000

    pw: fix error message in grp_set_passwd to use correct fd
    
    MFC After:      1 week
---
 usr.sbin/pw/pw_group.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/usr.sbin/pw/pw_group.c b/usr.sbin/pw/pw_group.c
index 2df22e014b67..e887bd0af0b9 100644
--- a/usr.sbin/pw/pw_group.c
+++ b/usr.sbin/pw/pw_group.c
@@ -88,7 +88,7 @@ grp_set_passwd(struct group *grp, bool update, int fd, bool 
precrypted)
                *p = '\0';
        if (!*line)
                errx(EX_DATAERR, "empty password read on file descriptor %d",
-                   conf.fd);
+                   fd);
        if (precrypted) {
                if (strchr(line, ':') != 0)
                        errx(EX_DATAERR, "wrong encrypted passwrd");

Reply via email to