Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!ucsd!rutgers!gatech!prism!gt0178a From: gt0178a@prism.gatech.EDU (Jim Burns) Newsgroups: comp.unix.programmer Subject: Re: Why use pwd(1) for getpwd(3C)? (Re: Why use find?) Message-ID: <14976@hydra.gatech.EDU> Date: 11 Oct 90 04:43:04 GMT References: <1990Oct10.231857.11668@virtech.uucp> Organization: Georgia Institute of Technology Lines: 16 in article <1990Oct10.231857.11668@virtech.uucp>, cpcahil@virtech.uucp (Conor P. Cahill) says: > I don't know the reason for making it a call to popen(), one reason may > have been security (pwd could be a setuid pgm and do things that a > function call couldn't). Not on my system (see below). And what about those shells that have pwd builtin? My shell's pwd seems to work fine, and the shell isn't setuid either. -rwxr-xr-x 1 root 16384 Nov 17 1989 /bin/pwd* -rwxrwxr-x 2 root 152692 Sep 18 11:51 /usr/local/bin/ksh* -- BURNS,JIM Georgia Institute of Technology, Box 30178, Atlanta Georgia, 30332 uucp: ...!{decvax,hplabs,ncar,purdue,rutgers}!gatech!prism!gt0178a Internet: gt0178a@prism.gatech.edu