summaryrefslogtreecommitdiff
path: root/misc.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-03-05 07:57:09 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-03-05 07:57:09 +0000
commit0f68db4e9e3a6c41504904079448770d13700a51 (patch)
treeecd27605c0abe8ce1fe608b06f1e4b0e302d7d10 /misc.c
parent9727181114e080810ab12bf5d964b6c738cd94d7 (diff)
- (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;