diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2015-12-28 23:57:22 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2015-12-28 23:57:22 +0000 |
commit | 764d9def266a32c90e034a2275bef7bc4658d767 (patch) | |
tree | 78126c5e8efcee42e3ee0e35ae898b93a91a6433 /pw | |
parent | 37f903568b33e005010ceea4921219edbe23ba39 (diff) | |
download | pw-darwin-764d9def266a32c90e034a2275bef7bc4658d767.tar.gz pw-darwin-764d9def266a32c90e034a2275bef7bc4658d767.tar.zst pw-darwin-764d9def266a32c90e034a2275bef7bc4658d767.zip |
Restore dryrun support for pw groupmod
Diffstat (limited to 'pw')
-rw-r--r-- | pw/pw_group.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pw/pw_group.c b/pw/pw_group.c index 67beab9..289a4c8 100644 --- a/pw/pw_group.c +++ b/pw/pw_group.c @@ -664,6 +664,11 @@ pw_group_mod(int argc, char **argv, char *arg1) grp_add_members(&grp, newmembers); } + if (dryrun) { + print_group(grp, pretty); + return (EXIT_SUCCESS); + } + if ((rc = chggrent(name, grp)) != 0) { if (rc == -1) errx(EX_IOERR, "group '%s' not available (NIS?)", |