Subject: bin/4837: inetd will not build if LIBWRAP isn't defined
To: None <gnats-bugs@gnats.netbsd.org>
From: None <thieleke@ix.netcom.com>
List: netbsd-bugs
Date: 01/18/1998 05:21:12
>Number:         4837
>Category:       bin
>Synopsis:       inetd doesn't build if LIBWRAP isn't defined
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jan 18 03:35:01 1998
>Last-Modified:
>Originator:     Jeff Thieleke
>Organization:
>Release:        very current
>Environment:
System: NetBSD beagle.dyn.ml.org 1.3B NetBSD 1.3B (BEAGLE) #160: Fri Jan 16 00:41:17 CST 1998 thieleke@beagle.dyn.ml.org:/usr/src/sys/arch/i386/compile/BEAGLE i386


>Description:
An array used outside of '#ifdef LIBWRAP' code is declared only when
LIBWRAP is #defined.

>How-To-Repeat:
Build inetd without -DLIBWRAP

>Fix:

*** /usr/src/usr.sbin/inetd/inetd.c     Tue Jan 13 09:25:26 1998
--- inetd.c     Sat Jan 17 23:59:32 1998
***************
*** 565,574 ****
  {
        struct passwd *pwd;
        struct group *grp = NULL;       /* XXX gcc */
  #ifdef LIBWRAP
        struct request_info req;
        int denied;
!       char buf[7], *service = NULL;   /* XXX gcc */
  #endif

  #ifdef LIBWRAP
--- 565,575 ----
  {
        struct passwd *pwd;
        struct group *grp = NULL;       /* XXX gcc */
+       char buf[7];
  #ifdef LIBWRAP
        struct request_info req;
        int denied;
!       char *service = NULL;           /* XXX gcc */
  #endif

  #ifdef LIBWRAP

>Audit-Trail:
>Unformatted: