]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
- (stevesk) [monitor.c monitor_wrap.c] #ifdef HAVE_PW_CLASS_IN_PASSWD
authorKevin Steves <stevesk@pobox.com>
Fri, 22 Mar 2002 18:07:17 +0000 (18:07 +0000)
committerKevin Steves <stevesk@pobox.com>
Fri, 22 Mar 2002 18:07:17 +0000 (18:07 +0000)
ChangeLog
monitor.c
monitor_wrap.c

index e3f3fcaf2eee0cf0352599abf7838f00f591108a..04d101ba30f7a4942566d23a456880edbbc42aef 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 20020322
  - (stevesk) HAVE_ACCRIGHTS_IN_MSGHDR configure support
+ - (stevesk) [monitor.c monitor_wrap.c] #ifdef HAVE_PW_CLASS_IN_PASSWD
 
 20020321
  - (bal) OpenBSD CVS Sync
  - Wrote replacements for strlcpy and mkdtemp
  - Released 1.0pre1
 
-$Id: ChangeLog,v 1.1967 2002/03/22 17:23:25 stevesk Exp $
+$Id: ChangeLog,v 1.1968 2002/03/22 18:07:17 stevesk Exp $
index 921ad985a7b4a21c244e51485cc57be3623abfea..6136c109e163a7b87b77a6aaabbc1259a11b6e02 100644 (file)
--- a/monitor.c
+++ b/monitor.c
@@ -494,7 +494,9 @@ mm_answer_pwnamallow(int socket, Buffer *m)
        buffer_put_cstring(m, pwent->pw_name);
        buffer_put_cstring(m, "*");
        buffer_put_cstring(m, pwent->pw_gecos);
+#ifdef HAVE_PW_CLASS_IN_PASSWD
        buffer_put_cstring(m, pwent->pw_class);
+#endif
        buffer_put_cstring(m, pwent->pw_dir);
        buffer_put_cstring(m, pwent->pw_shell);
 
index e477cff251485e69e76742aadf4c2d4af3b821b9..8b0ded19006b98b64fe8884be764c6bb9f1e7e1c 100644 (file)
@@ -197,7 +197,9 @@ mm_getpwnamallow(const char *login)
        pw->pw_name = buffer_get_string(&m, NULL);
        pw->pw_passwd = buffer_get_string(&m, NULL);
        pw->pw_gecos = buffer_get_string(&m, NULL);
+#ifdef HAVE_PW_CLASS_IN_PASSWD
        pw->pw_class = buffer_get_string(&m, NULL);
+#endif
        pw->pw_dir = buffer_get_string(&m, NULL);
        pw->pw_shell = buffer_get_string(&m, NULL);
        buffer_free(&m);