From 2605addd471ed1a5379d7b5ad7c3ba30be9b7947 Mon Sep 17 00:00:00 2001 From: mouring Date: Mon, 5 Mar 2001 07:57:09 +0000 Subject: [PATCH] - (bal) Put HAVE_PW_CLASS_IN_PASSWD back into pwcopy() --- ChangeLog | 1 + misc.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/ChangeLog b/ChangeLog index c62577e1..74b2c013 100644 --- a/ChangeLog +++ b/ChangeLog @@ -168,6 +168,7 @@ - deraadt@cvs.openbsd.org 2001/03/04 18:21:28 [sshd.8] list SSH2 ciphers + - (bal) Put HAVE_PW_CLASS_IN_PASSWD back into pwcopy() 20010304 - (bal) Remove make-ssh-known-hosts.1 since it's no longer valid. 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; -- 2.45.2