diff options
author | Ian Lepore <ian@FreeBSD.org> | 2018-07-27 15:17:24 +0000 |
---|---|---|
committer | Ian Lepore <ian@FreeBSD.org> | 2018-07-27 15:17:24 +0000 |
commit | 029a2d652e1b6a0bff4abb0d50f73999a40b60c5 (patch) | |
tree | f7cd30e439d030e74781bb6af99f883f0d689179 /usr.sbin/pw | |
parent | 95c05062ec15cf323488d4c5e1986f5866bf7464 (diff) |
Notes
Diffstat (limited to 'usr.sbin/pw')
-rw-r--r-- | usr.sbin/pw/pw_vpw.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/usr.sbin/pw/pw_vpw.c b/usr.sbin/pw/pw_vpw.c index 4517a743c73ea..192d588ab0cf3 100644 --- a/usr.sbin/pw/pw_vpw.c +++ b/usr.sbin/pw/pw_vpw.c @@ -113,18 +113,6 @@ vnextpwent(char const *nam, uid_t uid, int doclose) } free(line); - /* - * If we read the non-master passwd, some fields may not have been - * populated. Clean them up so that the output looks the same as that - * generated using getpwnam() which also inits them to these values. - */ - if (!(pw->pw_fields & _PWF_CLASS)) - pw->pw_class = ""; - if (!(pw->pw_fields & _PWF_CHANGE)) - pw->pw_change = 0; - if (!(pw->pw_fields & _PWF_EXPIRE)) - pw->pw_expire = 0; - return (pw); } |