Hash :
0c631b51
Author :
Date :
2011-04-26T15:07:07
save-cwd: reduce default dependency save-cwd generally needs only a working fchdir or a working getcwd(NULL,0). If you are not worried about directories whose absolute name is longer than PATH_MAX, then reducing the default dependencies reduces the bulk for this module. However, there are cases where neither function works on Linux (an unreadable but searchable directory can be opened by O_SEARCH, except that Linux doesn't implement that yet; and Linux getcwd() has issues with long absolute names which glibc does not work around but which the full-blown getcwd module does). So someone desiring a truly robust solution needs to import the 'getcwd' module at the same time as 'save-cwd'. * modules/save-cwd (Depends-on): Use getcwd-lgpl. * lib/save-cwd.c: Update comments. * NEWS: Document the semantic change. Signed-off-by: Eric Blake <eblake@redhat.com>
Description:
Save and restore the current working directory.
Files:
lib/save-cwd.h
lib/save-cwd.c
m4/save-cwd.m4
Depends-on:
chdir-long
cloexec
getcwd-lgpl
fchdir
stdbool
unistd-safer
configure.ac:
gl_SAVE_CWD
Makefile.am:
Include:
"save-cwd.h"
License:
GPL
Maintainer:
Jim Meyering