diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2015-06-07 15:54:57 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2015-06-07 15:54:57 +0000 |
commit | 3438d7decfe7008768b6e98bda6cafe5837287de (patch) | |
tree | 8dadd5ded40f7fad0eaeb5e12e11e7e799abcb33 | |
parent | 33ff4adb058727205958b7221f00e5754e6d2b5d (diff) | |
download | src-3438d7decfe7008768b6e98bda6cafe5837287de.tar.gz src-3438d7decfe7008768b6e98bda6cafe5837287de.zip |
Finish converting -7 to pwconf
Notes
Notes:
svn path=/head/; revision=284126
-rw-r--r-- | usr.sbin/pw/pw_user.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.sbin/pw/pw_user.c b/usr.sbin/pw/pw_user.c index 0fc7272e383b..0b15c7706db2 100644 --- a/usr.sbin/pw/pw_user.c +++ b/usr.sbin/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 */ |