Bugtraq mailing list archives

Re: libresolv+ bug


From: nelson () pangeia com br (Nelson Murilo)
Date: Sun, 18 Aug 1996 17:33:20 -0400


Hi my solution is very hard, i'm deleted getenv() options from
gethsnmad.c in libc-5.3.12 for Linux.
Possible not elegant, but funcionality :)


-----
libc-5.3.12.patch
-----8<----
*** gethstnmad.c.ant    Sat Apr 13 02:51:38 1996
--- gethstnmad.c        Fri Aug 16 17:01:49 1996
***************
*** 16,22 ****
   */

  #if defined(LIBC_SCCS) && !defined(lint)
! static char sccsid[] = "@(#)gethostnamadr.c   6.39 (Berkeley) 1/4/90";
  #endif /* LIBC_SCCS and not lint */

  #include "inetprivate.h"
--- 16,22 ----
   */

  #if defined(LIBC_SCCS) && !defined(lint)
! static char sccsid[] = "@(#)gethostnamadr.c   6.40 (Berkeley) 8/18/96";
  #endif /* LIBC_SCCS and not lint */

  #include "inetprivate.h"
*************** init_services()
*** 306,315 ****
  #if NLS
        libc_nls_init();
  #endif
!       if(NULL==(hostconf=getenv(ENV_HOSTCONF))){
!               hostconf=_PATH_HOSTCONF;
!       }
!       if ((fd = (FILE *)fopen(hostconf, "r")) == NULL) {
                                /* make some assumptions */
                service_order[0] = SERVICE_BIND;
                service_order[1] = SERVICE_NONE;
--- 306,312 ----
  #if NLS
        libc_nls_init();
  #endif
!       if ((fd = (FILE *)fopen(_PATH_HOSTCONF, "r")) == NULL) {
                                /* make some assumptions */
                service_order[0] = SERVICE_BIND;
                service_order[1] = SERVICE_NONE;
---8<---

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
N e l s o n  M u r i l o
Pangeia Informatica - Provedor de solucoes Internet.
http://www.pangeia.com.br
http://www.bluesky.net/pangeia
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .



Current thread: