Why use pwd(1) for getpwd(3C)? (Re: Why use find?)

Jim Burns gt0178a at prism.gatech.EDU
Thu Oct 11 14:43:04 AEST 1990


in article <1990Oct10.231857.11668 at virtech.uucp>, cpcahil at 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 at prism.gatech.edu



More information about the Comp.unix.programmer mailing list