Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Jun 2015 15:54:57 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r284126 - head/usr.sbin/pw
Message-ID:  <201506071554.t57FsvF5039237@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Sun Jun  7 15:54:57 2015
New Revision: 284126
URL: https://svnweb.freebsd.org/changeset/base/284126

Log:
  Finish converting -7 to pwconf

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

Modified: head/usr.sbin/pw/pw_user.c
==============================================================================
--- head/usr.sbin/pw/pw_user.c	Sun Jun  7 15:47:58 2015	(r284125)
+++ head/usr.sbin/pw/pw_user.c	Sun Jun  7 15:54:57 2015	(r284126)
@@ -360,8 +360,7 @@ pw_user(int mode, struct cargs * args)
 			if (mode == M_PRINT && getarg(args, 'F')) {
 				fakeuser.pw_name = a_name ? a_name->val : "nouser";
 				fakeuser.pw_uid = a_uid ? (uid_t) atol(a_uid->val) : (uid_t) -1;
-				return print_user(&fakeuser,
-						  getarg(args, '7') != NULL);
+				return print_user(&fakeuser);
 			}
 			if (a_name == NULL)
 				errx(EX_NOUSER, "no such uid `%s'", a_uid->val);
@@ -398,7 +397,7 @@ pw_user(int mode, struct cargs * args)
 			return (delete_user(cnf, pwd, a_name,
 				    getarg(args, 'r') != NULL, mode));
 		else if (mode == M_PRINT)
-			return print_user(pwd, getarg(args, '7') != NULL);
+			return print_user(pwd);
 
 		/*
 		 * The rest is edit code
@@ -616,7 +615,7 @@ pw_user(int mode, struct cargs * args)
 	 * Special case: -N only displays & exits
 	 */
 	if (conf.dryrun)
-		return print_user(pwd, getarg(args, '7') != NULL);
+		return print_user(pwd);
 
 	if (mode == M_ADD) {
 		edited = 1;	/* Always */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201506071554.t57FsvF5039237>