bug-gnulib
[Top][All Lists]
Advanced

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

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


From: Paul Eggert
Subject: [bug-gnulib] Re: getcwd fixes for bugs in glibc, Solaris, OpenBSD, ...
Date: Sun, 28 Nov 2004 20:46:43 -0800
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

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 was what I
was going to do before you beat me to the implementation.  :-)




reply via email to

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