Restore dryrun support for pw groupmod
This commit is contained in:
parent
1714dcab20
commit
36a8b62f3a
@ -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?)",
|
||||
|
Loading…
Reference in New Issue
Block a user