Why use pwd(1) for getpwd(3C)? (Re: Why use find?)
Richard Tobin
richard at aiai.ed.ac.uk
Tue Oct 16 03:30:09 AEST 1990
In article <11478 at alice.att.com> andrew at alice.att.com (Andrew Hume) writes:
> as has been pointed out, a safe getpwd() routine has to fork so that
> chdir failures do not ruin the calling program's working dir.
Why does getpwd() have to chdir()?
-- Richard
--
Richard Tobin, JANET: R.Tobin at uk.ac.ed
AI Applications Institute, ARPA: R.Tobin%uk.ac.ed at nsfnet-relay.ac.uk
Edinburgh University. UUCP: ...!ukc!ed.ac.uk!R.Tobin
More information about the Comp.unix.programmer
mailing list