diff options
author | Damien Miller <djm@mindrot.org> | 2013-04-23 14:25:52 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2013-04-23 14:25:52 +1000 |
commit | 6332da2ae88db623d7da8070dd807efa26d9dfe8 (patch) | |
tree | 1d8fd6ce793ce93282d2ae80a6cee8324b283f31 /misc.c | |
parent | ce1c9574fcfaf753a062276867335c1e237f725c (diff) | |
download | openssh-git-6332da2ae88db623d7da8070dd807efa26d9dfe8.tar.gz |
- (djm) [auth.c configure.ac misc.c monitor.c monitor_wrap.c] Support
platforms, such as Android, that lack struct passwd.pw_gecos. Report
and initial patch from Nathan Osman bz#2086; feedback tim@ ok dtucker@
Diffstat (limited to 'misc.c')
-rw-r--r-- | misc.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -206,16 +206,18 @@ pwcopy(struct passwd *pw) copy->pw_name = xstrdup(pw->pw_name); copy->pw_passwd = xstrdup(pw->pw_passwd); +#ifdef HAVE_STRUCT_PASSWD_PW_GECOS copy->pw_gecos = xstrdup(pw->pw_gecos); +#endif copy->pw_uid = pw->pw_uid; copy->pw_gid = pw->pw_gid; -#ifdef HAVE_PW_EXPIRE_IN_PASSWD +#ifdef HAVE_STRUCT_PASSWD_PW_EXPIRE copy->pw_expire = pw->pw_expire; #endif -#ifdef HAVE_PW_CHANGE_IN_PASSWD +#ifdef HAVE_STRUCT_PASSWD_PW_CHANGE copy->pw_change = pw->pw_change; #endif -#ifdef HAVE_PW_CLASS_IN_PASSWD +#ifdef HAVE_STRUCT_PASSWD_PW_CLASS copy->pw_class = xstrdup(pw->pw_class); #endif copy->pw_dir = xstrdup(pw->pw_dir); |