commit | 824569537f874d754041f2c1b0898feda0c12f31 | [log] [tgz] |
---|---|---|
author | Kevin Steves <stevesk@pobox.com> | Fri Jun 22 21:14:18 2001 +0000 |
committer | Kevin Steves <stevesk@pobox.com> | Fri Jun 22 21:14:18 2001 +0000 |
tree | 4970f290470e0bf75a37133e35b82a9ff5dc9894 | |
parent | 601e43638e9e7889127634c3ba0949ba9fb917aa [diff] [blame] |
- (stevesk) handle systems without pw_expire and pw_change.
diff --git a/misc.c b/misc.c index 283e17e..db9c2e4 100644 --- a/misc.c +++ b/misc.c
@@ -131,8 +131,12 @@ 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