From ab478de1f9b3f73036ee05004fb2d503a0f339bc Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Fri, 5 Jun 2026 00:19:54 +0200 Subject: [PATCH] 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 dcf870ca1ed..abb8a09ce46 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); }