[3202] in bugtraq
Re: libresolv+ bug
daemon@ATHENA.MIT.EDU (Nelson Murilo)
Sun Aug 18 19:10:07 1996
Date: Sun, 18 Aug 1996 17:33:20 -0400
Reply-To: Nelson Murilo <nelson@pangeia.com.br>
From: Nelson Murilo <nelson@pangeia.com.br>
To: Multiple recipients of list BUGTRAQ <BUGTRAQ@netspace.org>
In-Reply-To: <Pine.LNX.3.95.960818025102.7620A-100000@eclectic.kluge.net>
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
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .