Restore dryrun support for pw groupmod

This commit is contained in:
Baptiste Daroussin 2015-12-28 23:57:22 +00:00
parent 1714dcab20
commit 36a8b62f3a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=292846

View File

@ -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?)",