Date: Sun, 1 Dec 1996 00:11:50 +0900 (JST) From: Hidetoshi Shimokawa <simokawa@sat.t.u-tokyo.ac.jp> To: FreeBSD-gnats-submit@freebsd.org Subject: bin/2129: current pwd_mkdb.c is not comatible with libc.so.2.2 Message-ID: <199611301511.AAA03994@uno.sat.t.u-tokyo.ac.jp> Resent-Message-ID: <199611301520.HAA20795@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 2129 >Category: bin >Synopsis: current pwd_mkdb.c is not comatible with libc.so.2.2 >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Nov 30 07:20:01 PST 1996 >Last-Modified: >Originator: Hidetoshi Shimokawa >Organization: University of Tokyo >Release: FreeBSD 2.2-ALPHA i386 >Environment: FreeBSD 2.2-ALPHA >Description: I have trouble with using 2.1.x binaries on 2.2-ALPHA. They are linked with libc.so.2.2 and they can not get a passwd entry for NIS users. Like the followings, (User simokawa is not in local passwd file but in NIS map.) % csh % echo ~simokawa /home/sat/simokawa % zsh % echo ~simokawa zsh: user not found: simokawa % ldd /usr/local/bin/zsh /usr/local/bin/zsh: -ltermcap.2 => /usr/lib/libtermcap.so.2.1 (0x8065000) -lc.2 => /usr/lib/libc.so.2.2 (0x8069000) If I rebuild pwd.db by old pwd_mkdb or relink zsh with libc.so.3.0, it works fine. I think this is very bad and many pepole upgrading to 2.2 will encounter same problem. It takes me more than 2 weeks to find out the reason :-(. I guess this is because of the following change on mk_pwd.c ----- revision 1.10 date: 1996/04/16 00:23:59; author: wpaul; state: Exp; lines: +11 -56 NIS cleanups and fixes, the next generation, continued. pwd_mkdb.c: - Don't save the PLUSCNT and MINUSCNT tokens: we don't need them anymore. - Count the + and - entires for NIS together instead of counting + and - entries seperately. Index all special NIS entries using new _PW_KEYYPBYNUM token. pwd.h: - Remove the PLUSBYNUM, MINUSBYNUM, PLUSCNT and MINUSCNT tokens and replace then with a single _PW_KEYYPBYNUM token. ---- >How-To-Repeat: See above. >Fix: pwd_mkdb.c should have compatibility with old libc. Changing pwd_mkdb.c, so that it adds PLUSBYNUM, MINUSBYNUM, PLUSCNT and MINUSCNT tokens to pwd.db, should solve this problem, but I'm not sure. >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199611301511.AAA03994>