diff options
author | Kevin Steves <stevesk@pobox.com> | 2001-06-22 23:14:18 +0200 |
---|---|---|
committer | Kevin Steves <stevesk@pobox.com> | 2001-06-22 23:14:18 +0200 |
commit | 824569537f874d754041f2c1b0898feda0c12f31 (patch) | |
tree | 4970f290470e0bf75a37133e35b82a9ff5dc9894 /misc.c | |
parent | - markus@cvs.openbsd.org 2001/06/20 13:56:39 (diff) | |
download | openssh-824569537f874d754041f2c1b0898feda0c12f31.tar.xz openssh-824569537f874d754041f2c1b0898feda0c12f31.zip |
- (stevesk) handle systems without pw_expire and pw_change.
Diffstat (limited to 'misc.c')
-rw-r--r-- | misc.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -131,8 +131,12 @@ pwcopy(struct passwd *pw) copy->pw_gecos = xstrdup(pw->pw_gecos); copy->pw_uid = pw->pw_uid; copy->pw_gid = pw->pw_gid; +#ifdef HAVE_PW_EXPIRE_IN_PASSWD copy->pw_expire = pw->pw_expire; +#endif +#ifdef HAVE_PW_CHANGE_IN_PASSWD copy->pw_change = pw->pw_change; +#endif #ifdef HAVE_PW_CLASS_IN_PASSWD copy->pw_class = xstrdup(pw->pw_class); #endif |