svn commit: r292846 - head/usr.sbin/pw

Baptiste Daroussin bapt at FreeBSD.org
Mon Dec 28 23:57:23 UTC 2015


Author: bapt
Date: Mon Dec 28 23:57:22 2015
New Revision: 292846
URL: https://svnweb.freebsd.org/changeset/base/292846

Log:
  Restore dryrun support for pw groupmod

Modified:
  head/usr.sbin/pw/pw_group.c

Modified: head/usr.sbin/pw/pw_group.c
==============================================================================
--- head/usr.sbin/pw/pw_group.c	Mon Dec 28 23:32:27 2015	(r292845)
+++ head/usr.sbin/pw/pw_group.c	Mon Dec 28 23:57:22 2015	(r292846)
@@ -664,6 +664,11 @@ pw_group_mod(int argc, char **argv, char
 		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?)",


More information about the svn-src-head mailing list