summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pw/pw.c
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2015-07-09 14:14:44 +0000
committerbapt <bapt@FreeBSD.org>2015-07-09 14:14:44 +0000
commitf97075fb600cdc33c56be0af463ad3730f0d0765 (patch)
tree2227b5c28b1309e5e31c30983f64fe2be0de7300 /usr.sbin/pw/pw.c
parent561cbb7709302b0b0f090aabb01a4eedc58aab48 (diff)
downloadFreeBSD-src-f97075fb600cdc33c56be0af463ad3730f0d0765.zip
FreeBSD-src-f97075fb600cdc33c56be0af463ad3730f0d0765.tar.gz
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 'usr.sbin/pw/pw.c')
-rw-r--r--usr.sbin/pw/pw.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/pw/pw.c b/usr.sbin/pw/pw.c
index b9bd9d0..6769738 100644
--- a/usr.sbin/pw/pw.c
+++ b/usr.sbin/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.
OpenPOWER on IntegriCloud