Prior to this change, the save_cwd caller required read access to the
authorJim Meyering <jim@meyering.net>
Wed, 12 May 2004 16:23:32 +0000 (16:23 +0000)
committerJim Meyering <jim@meyering.net>
Wed, 12 May 2004 16:23:32 +0000 (16:23 +0000)
commit1f6297a30c109108ac3ae505a8f051a9dff5529e
tree04768907f1eeb810e025ca8d13f7cec968b37f48
parent62506e7817689dd70311d3a6ad3fd8e4fbc4308c
Prior to this change, the save_cwd caller required read access to the
current directory on most systems (ones with the fchdir function).

* save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
fails, try write-only, and finally, resort to using xgetcwd.
lib/ChangeLog
lib/save-cwd.c