Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!CIS.OHIO-STATE.EDU!george From: george@CIS.OHIO-STATE.EDU (George M. Jones) Newsgroups: comp.sys.encore Subject: strangeness with YP Message-ID: <9010102043.AA01292@dracula.cis.ohio-state.edu> Date: 10 Oct 90 20:43:20 GMT Sender: george@tut.cis.ohio-state.edu Reply-To: george@cis.ohio-state.edu Lines: 44 From: phil@eecs.nwu.edu (William LeFebvre) Newsgroups: comp.sys.encore Date: 5 Oct 90 20:58:07 GMT Reply-To: phil@eecs.nwu.edu (William LeFebvre) Organization: EECS Department, Northwestern University Now that YP is running, csh exhibits the following bizarre behavior: % cd % ls | cat > ~luser/a cat: read error: Bad file number % (where the current user is in fact "luser". The following does what you would expect: % cd % ls | cat > ~/a % Any clues? William LeFebvre Computing Facilities Manager and Analyst Department of Electrical Engineering and Computer Science Northwestern University I'm a little slow in catching up... I suggest you try a few experiments with getpwnam. I suspect that what is happening is something like the [t]csh calling getpwnam, which happily goes out and does a yp call, and low and behold there is no user named "luser" in the yp password file, so the routine happily reports a failure to the shell, but you were able to log in which means that login(1) probabibly uses an older/ypless version of getpwnam, so it succeeds in reading from /etc/passwd. BTW, if anybody has a compiled and working version of a recent tcsh for Umax 4.3 with YP I'd like to hear about it/get your diffs/ftp a copy. ---George Jones