summaryrefslogtreecommitdiffstats
path: root/pw/pw.c
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2015-07-09 14:14:44 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2015-07-09 14:14:44 +0000
commit6b05c812aab670bc774bcc5dcc38cfc87a401ab6 (patch)
tree5cb18fa5e62a0a66ee1339d57d7f2d3eb2e6e444 /pw/pw.c
parent234c04262f119960f79894ca616c3f54905022f5 (diff)
downloadpw-darwin-6b05c812aab670bc774bcc5dcc38cfc87a401ab6.tar.gz
pw-darwin-6b05c812aab670bc774bcc5dcc38cfc87a401ab6.tar.zst
pw-darwin-6b05c812aab670bc774bcc5dcc38cfc87a401ab6.zip
Do not try to set password on group if the group is added as a consequence of
of creating a user (regression from r285136) Reported by: Fabian Keil <fk@fabiankeil.de>
Diffstat (limited to 'pw/pw.c')
-rw-r--r--pw/pw.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pw/pw.c b/pw/pw.c
index b9bd9d0..6769738 100644
--- a/pw/pw.c
+++ b/pw/pw.c
@@ -215,6 +215,7 @@ main(int argc, char *argv[])
if (mode == -1 || which == -1)
cmdhelp(mode, which);
+ conf.which = which;
/*
* We know which mode we're in and what we're about to do, so now
* let's dispatch the remaining command line args in a genric way.