From owner-cvs-all Wed Sep 6 19: 7: 5 2000 Delivered-To: cvs-all@freebsd.org Received: from piano.mahoroba.org (to2-093.netspace.or.jp [202.210.89.93]) by hub.freebsd.org (Postfix) with ESMTP id 5044437B424; Wed, 6 Sep 2000 19:06:57 -0700 (PDT) Received: from localhost (IDENT:+0lGO8Fw74Lne7mK2bnompdWu0xlQnuRKJ66UvbjaiYgXs53XVceXD3qOJJfjP4g@localhost [::1]) by piano.mahoroba.org (8.11.0/8.11.0/piano) with ESMTP id e8726rY33024; Thu, 7 Sep 2000 11:06:54 +0900 (JST) (envelope-from ume@mahoroba.org) To: nectar@FreeBSD.org Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/etc Makefile hosts rc.network host.conf src/include hesiod.h nsswitch.h Makefile netdb.h src/lib/libc Makefile.inc src/lib/libc/gen Makefile.inc getgrent.3 getgrent.c getpwent.3 getpwent.c getusershell.3 getusershell.c pw_scan.c ... In-Reply-To: <200009061816.LAA30295@freefall.freebsd.org> References: <200009061816.LAA30295@freefall.freebsd.org> X-Mailer: xcite1.20> Mew version 1.94.2 on Emacs 20.7 / Mule 4.0 =?iso-2022-jp?B?KBskQjJWMWMbKEIp?= X-PGP-Public-Key: http://www.imasy.org/~ume/publickey.asc X-PGP-Fingerprint: 6B 0C 53 FC 5D D0 37 91 05 D0 B3 EF 36 9B 6A BC X-URL: http://www.imasy.org/~ume/ X-OS: FreeBSD 4.1-STABLE Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20000907110652K.ume@mahoroba.org> Date: Thu, 07 Sep 2000 11:06:52 +0900 From: Hajimu UMEMOTO X-Dispatcher: imput version 20000414(IM141) Lines: 54 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >>>>> On Wed, 6 Sep 2000 11:16:50 -0700 (PDT) >>>>> Jacques Vidrine said: nectar> Log: nectar> Add nsswitch support. By creating an /etc/nsswitch.conf file, you can nectar> configure FreeBSD so that various databases such as passwd and group can be nectar> looked up using flat files, NIS, or Hesiod. It seems my patch sent to you directly before was not applied. Without my patch, getipnodebyname() doesn't work correctly. It breaks sendmail. --- lib/libc/net/name6.c.orig Thu Sep 7 10:54:20 2000 +++ lib/libc/net/name6.c Sat Sep 2 23:43:11 2000 @@ -235,7 +235,7 @@ _ghbyname(const char *name, int af, int flags, int *errp) { struct hostent *hp; - int i, rval; + int rval; static const ns_dtab dtab[] = { NS_FILES_CB(_files_ghbyname, NULL) @@ -360,7 +360,7 @@ getipnodebyaddr(const void *src, size_t len, int af, int *errp) { struct hostent *hp; - int i, rval; + int rval; #ifdef INET6 struct in6_addr addrbuf; #else @@ -769,7 +769,7 @@ char *aliases[MAXALIASES + 1], *addrs[2]; union inx_addr addrbuf; char buf[BUFSIZ]; - int af0 = af; + int af0; name = va_arg(ap, const char *); af = va_arg(ap, int); @@ -781,6 +781,7 @@ return NS_UNAVAIL; rethp = hp = NULL; + af0 = af; while (fgets(buf, sizeof(buf), fp)) { line = buf; if ((addrstr = _hgetword(&line)) == NULL -- Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan ume@mahoroba.org ume@bisd.hitachi.co.jp ume@FreeBSD.org http://www.imasy.org/~ume/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message