diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2015-07-09 14:14:44 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2015-07-09 14:14:44 +0000 |
commit | 6b05c812aab670bc774bcc5dcc38cfc87a401ab6 (patch) | |
tree | 5cb18fa5e62a0a66ee1339d57d7f2d3eb2e6e444 /pw/pw_group.c | |
parent | 234c04262f119960f79894ca616c3f54905022f5 (diff) | |
download | pw-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_group.c')
-rw-r--r-- | pw/pw_group.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pw/pw_group.c b/pw/pw_group.c index 2a90ff2..c664ef5 100644 --- a/pw/pw_group.c +++ b/pw/pw_group.c @@ -200,7 +200,7 @@ pw_group(int mode, char *name, long id, struct cargs * args) * software. */ - if (conf.fd != -1) + if (conf.which == W_GROUP && conf.fd != -1) set_passwd(grp, mode == M_UPDATE); if (((arg = getarg(args, 'M')) != NULL || |