Subject: Re: fchdir() calls in pkg_*
To: Hubert Feyrer <email@example.com>
From: Marc Espie <firstname.lastname@example.org>
Date: 08/16/2001 03:13:14
On Wed, Aug 15, 2001 at 07:17:00AM +0200, Hubert Feyrer wrote:
> On Wed, 15 Aug 2001, Harlan Stenn wrote:
> > My current hurdle is the fchdir() calls - before I go and dig thru the code
> > to see if it will be hard to convert these, does anybody here have an idea
> > how hard it would be to lose them?
> Probably not too hard e.g. using getcwd() and chdir(). I chose the current
> implementation for its elegance and speed efficiency.
fchdir() is standard Posix stuff.
Getting rid of standard posix stuff looks like a bad idea to me, especially
things as basic as fchdir(). It offers some guarantees that getcwd() +
chdir() can't match.