diff options
author | Eric Blake <ebb9@byu.net> | 2009-09-01 07:41:28 -0600 |
---|---|---|
committer | Eric Blake <ebb9@byu.net> | 2009-09-02 19:14:53 -0600 |
commit | 4f1227bdeac3e4e18c9b3efb27623875e02d681d (patch) | |
tree | e77970365b2c7c9284cef867ffde173f84c501c8 /lib/fdopendir.c | |
parent | eeb36a484013c26402222f677f53a20e3f8488e2 (diff) | |
download | gnulib-4f1227bdeac3e4e18c9b3efb27623875e02d681d.tar.gz |
dirent-safer: new module
* modules/dirent-safer: New file.
* lib/dirent--.h: Likewise.
* lib/dirent-safer.h: Likewise.
* lib/opendir-safer.c: Likewise.
* m4/dirent-safer.m4: Likewise.
* MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
* modules/dirent-safer-tests: New test.
* tests/test-dirent-safer.c: New file.
* lib/fdopendir.c (includes): Ensure fdopendir is also safe.
Signed-off-by: Eric Blake <ebb9@byu.net>
Diffstat (limited to 'lib/fdopendir.c')
-rw-r--r-- | lib/fdopendir.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/fdopendir.c b/lib/fdopendir.c index 3bc13acf41..14dc111c81 100644 --- a/lib/fdopendir.c +++ b/lib/fdopendir.c @@ -27,6 +27,10 @@ #include "openat-priv.h" #include "save-cwd.h" +#if GNULIB_DIRENT_SAFER +# include "dirent--.h" +#endif + /* Replacement for Solaris' function by the same name. <http://www.google.com/search?q=fdopendir+site:docs.sun.com> First, try to simulate it via opendir ("/proc/self/fd/FD"). Failing |