From owner-freebsd-bugs Thu Nov 21 10:58:40 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id KAA11114 for bugs-outgoing; Thu, 21 Nov 1996 10:58:40 -0800 (PST) Received: from uno.sat.t.u-tokyo.ac.jp (uno.sat.t.u-tokyo.ac.jp [133.11.70.160]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id KAA11098 for ; Thu, 21 Nov 1996 10:58:28 -0800 (PST) Received: by uno.sat.t.u-tokyo.ac.jp (8.7.3+2.6Wbeta5/8.7.3) with ESMTP id DAA14127; Fri, 22 Nov 1996 03:58:23 +0900 (JST) To: freebsd-bugs@freebsd.org Subject: Re: Problem getting NIS/yp to allow logins/su to users X-Mailer: Mew version 1.52 on Emacs 19.28.1, Mule 2.3 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Fri, 22 Nov 1996 03:58:23 +0900 Message-ID: <14125.848602703@sat.t.u-tokyo.ac.jp> From: Hidetoshi Shimokawa Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk I also observe strange behavior on NIS and shared library. A) 2.2-ALPHA If I link the following program with libc.so.3.0, and run % ./getpw username-in-NIS-map-and-not-in-local-passwd then I get "sucess". But if link it with libc.so.2.2 (ln -s /usr/lib/libc.so.2.2 .; cc -o getpw getpw.c -L .) then I get "fail". lib.c.2.0 gets "sucess". I noticed this because old zsh and tcsh binaries don't work correctly under 2.2 ALPHA. The results of ktrace show it gets the right passwd field from yp server but getpwnam returns NULL. --- /* getpw.c */ #include #include struct passwd *p; main (int argc, char **argv) { p = getpwnam(argv[1]); printf("%s\n", p?"success":"fail"); } -- B) originally 2.1.0, but kernel is current and some binaries are current. The above program works fine for any shared library. I cannot make out what is different between A and B. /\ Hidetoshi Shimokawa \/ simokawa@sat.t.u-tokyo.ac.jp PGP public key: finger -l simokawa@sat.t.u-tokyo.ac.jp