Date: Fri, 22 Nov 1996 03:58:23 +0900 From: Hidetoshi Shimokawa <simokawa@sat.t.u-tokyo.ac.jp> To: freebsd-bugs@freebsd.org Subject: Re: Problem getting NIS/yp to allow logins/su to users Message-ID: <14125.848602703@sat.t.u-tokyo.ac.jp>
next in thread | raw e-mail | index | archive | help
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 <sys/types.h> #include <pwd.h> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14125.848602703>