git: ab478de1f9b3 - main - pw: fix incorrect metalog path in mkdir_home_parents

From: Baptiste Daroussin <bapt_at_FreeBSD.org>
Date: Fri, 05 Jun 2026 06:02:39 UTC
The branch main has been updated by bapt:

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

commit ab478de1f9b3f73036ee05004fb2d503a0f339bc
Author:     Baptiste Daroussin <bapt@FreeBSD.org>
AuthorDate: 2026-06-04 22:19:54 +0000
Commit:     Baptiste Daroussin <bapt@FreeBSD.org>
CommitDate: 2026-06-05 06:01:56 +0000

    pw: fix incorrect metalog path in mkdir_home_parents
---
 usr.sbin/pw/pw_user.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/usr.sbin/pw/pw_user.c b/usr.sbin/pw/pw_user.c
index dcf870ca1edc..abb8a09ce468 100644
--- a/usr.sbin/pw/pw_user.c
+++ b/usr.sbin/pw/pw_user.c
@@ -123,7 +123,7 @@ mkdir_home_parents(int dfd, const char *dir)
 					    dirs);
 				if (fchownat(dfd, dirs, 0, 0, 0) != 0)
 					warn("chown(%s)", dirs);
-				metalog_emit(dir,
+				metalog_emit(dirs,
 				    (_DEF_DIRMODE | S_IFDIR) & ~pumask, 0, 0,
 				    0);
 			}