[gnu.utils.bug] getwd portability for tar 1.07

djm@wam.UMD.EDU (09/29/89)

In GNU tar 1.07 the portability considerations for getwd() are divided
between two files: port.c and tar.c.  In port.c is an implementation
that opens a pipe to pwd (slow), and in tar.c getcwd() is used instead
if MSDOS is defined.  But since MSDOS isn't the only system that has
getcwd() but not getwd() (my System V machine, for example), and since
getwd() can be implemented as a call to getcwd() on those systems, I think
that the code in tar.c should be removed and an alternate definition of
getwd(), in terms of getcwd(), be made available in port.c.  Perhaps
when both NEED_GETWD and (a new macro) HAVE_GETCWD are defined.
-- 
David J. MacKenzie <djm@wam.umd.edu>