summaryrefslogtreecommitdiff
path: root/misc.c
diff options
context:
space:
mode:
authormouring <mouring>2001-03-05 07:57:09 +0000
committermouring <mouring>2001-03-05 07:57:09 +0000
commit52e05dd83e8fad5795956b33b7cd086fd644b680 (patch)
treece0e28fd24272322d786f9dbb3e86c2b5a2778d6 /misc.c
parent4d05adfd8ee5d2b97b32d5d45f5ffcdfa29ead56 (diff)
downloadopenssh-52e05dd83e8fad5795956b33b7cd086fd644b680.tar.gz
- (bal) Put HAVE_PW_CLASS_IN_PASSWD back into pwcopy()
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/misc.c b/misc.c
index 24f7df59..495b0290 100644
--- a/misc.c
+++ b/misc.c
@@ -108,7 +108,9 @@ 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_CLASS_IN_PASSWD
copy->pw_class = xstrdup(pw->pw_class);
+#endif
copy->pw_dir = xstrdup(pw->pw_dir);
copy->pw_shell = xstrdup(pw->pw_shell);
return copy;