From c33566fef39251e52f3ae1dccbff9ef2cb6a53be Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Wed, 13 Mar 2002 13:46:44 +1100 Subject: Compile fixes for Linux --- monitor_wrap.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'monitor_wrap.c') diff --git a/monitor_wrap.c b/monitor_wrap.c index 798e9353..5d7f4ba7 100644 --- a/monitor_wrap.c +++ b/monitor_wrap.c @@ -186,7 +186,10 @@ mm_getpwnamallow(int socket, const char *login, int *allowed) pw->pw_name = buffer_get_string(&m, NULL); pw->pw_passwd = buffer_get_string(&m, NULL); pw->pw_gecos = buffer_get_string(&m, NULL); +#if defined(HAVE_PW_CLASS_IN_PASSWD) +#error XXX - get an empty string instead to preserve protocol? 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); @@ -200,7 +203,9 @@ pwfree(struct passwd *pw) xfree(pw->pw_name); xfree(pw->pw_passwd); xfree(pw->pw_gecos); +#if defined(HAVE_PW_CLASS_IN_PASSWD) xfree(pw->pw_class); +#endif xfree(pw->pw_dir); xfree(pw->pw_shell); xfree(pw); -- cgit v1.2.3