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

Eric Varsanyi ewv at craycos.com
Sat Oct 13 06:04:10 AEST 1990


In article <1990Oct11.012643.11274 at diku.dk> kimcm at diku.dk (Kim Christian Madsen) writes:
>That's maybe the indirect reason, the rest is because of sloppy AT&T
>programmers, that figured that there was no reason to copy code from
>pwd(1) into the getpwd(3C) routine. SYSVR4 is supposed to eliminate this
>idiotic behaviour of getpwd(3C), and I pray that AT&T have learned from
>the negative response they have got, and do not try this path again.
>

	Getcwd.c in SVR4 does not use popen/system. It does what you
might expect (walks up the tree using '.' and '..').

-- 
-Eric Varsanyi (ewv at craycos.com)        Cray Computer Corporation



More information about the Comp.unix.programmer mailing list