aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2026-06-04 22:19:54 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2026-06-05 06:01:56 +0000
commitab478de1f9b3f73036ee05004fb2d503a0f339bc (patch)
treeaf57470809214290e366ee963d7edf6e454dbf15
parentfe1e912d5a394565e9adfbc443555ae0b3f087e5 (diff)
pw: fix incorrect metalog path in mkdir_home_parents
-rw-r--r--usr.sbin/pw/pw_user.c2
1 files changed, 1 insertions, 1 deletions
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);
}