summaryrefslogtreecommitdiffstats
path: root/pw/pw_user.c
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2015-06-07 15:54:57 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2015-06-07 15:54:57 +0000
commit46d579ce2a5795de6e64374df8158c406039d622 (patch)
tree07e98bc72e5e51367a8fe112292014cd23ea1860 /pw/pw_user.c
parentdb489c8994e6b368a036a5b8d9145e544fe96a14 (diff)
downloadpw-darwin-46d579ce2a5795de6e64374df8158c406039d622.tar.gz
pw-darwin-46d579ce2a5795de6e64374df8158c406039d622.tar.zst
pw-darwin-46d579ce2a5795de6e64374df8158c406039d622.zip
Finish converting -7 to pwconf
Diffstat (limited to 'pw/pw_user.c')
-rw-r--r--pw/pw_user.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/pw/pw_user.c b/pw/pw_user.c
index 0fc7272..0b15c77 100644
--- a/pw/pw_user.c
+++ b/pw/pw_user.c
@@ -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 */