bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-gnulib] Re: getcwd fixes for bugs in glibc, Solaris, OpenBSD, .


From: Jim Meyering
Subject: Re: [bug-gnulib] Re: getcwd fixes for bugs in glibc, Solaris, OpenBSD, ...
Date: Mon, 29 Nov 2004 15:25:02 +0100

Paul Eggert <address@hidden> wrote:
> Jim Meyering <address@hidden> writes:
>> It's easy to pick and choose which *applications* use the replacement.
>> Those that want the robust chdir should just include "chdir.h".
>> The problem is when there's a mix of uses, some where we know
>> the chdir argument is always a relative single component, or
>> otherwise valid, while restore_cwd may well need the robust version
>> if save_cwd was run from a deep working directory where open "." failed.
>
> This seems to cry out for having two functions, as I can easily
> imagine single modules that'll need both.  How about if we name the
> robust version "chdir_long" or something like that?

That makes two of us.  I'll change it.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]