X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fsave-cwd.c;h=5f8eb7ca53e12b09a50a3f4885d4a6816c2a6f2d;hb=64ee293cdac319d0f38cd0d31e758a823b7163ad;hp=48016704aecbdc074190b88475600ac498c3fad7;hpb=2a073aa43c076d19beeffcca1684d2bcaaba28be;p=gnulib.git diff --git a/lib/save-cwd.c b/lib/save-cwd.c index 48016704a..5f8eb7ca5 100644 --- a/lib/save-cwd.c +++ b/lib/save-cwd.c @@ -30,7 +30,6 @@ #include "chdir-long.h" #include "unistd--.h" -#include "xgetcwd.h" #include "cloexec.h" #if GNULIB_FCNTL_SAFER @@ -51,7 +50,8 @@ The `raison d'etre' for this interface is that the working directory is sometimes inaccessible, and getcwd is not robust or as efficient. So, we prefer to use the open/fchdir approach, but fall back on - getcwd if necessary. + getcwd if necessary. This module works for most cases with just + the getcwd-lgpl module, but to be truly robust, use the getcwd module. Some systems lack fchdir altogether: e.g., OS/2, pre-2001 Cygwin, SCO Xenix. Also, SunOS 4 and Irix 5.3 provide the function, yet it