summaryrefslogtreecommitdiff
path: root/modules/chdir-long
diff options
context:
space:
mode:
authorEric Blake <ebb9@byu.net>2009-09-01 12:25:01 -0600
committerEric Blake <ebb9@byu.net>2009-09-02 20:33:22 -0600
commitfc333501ca97880108c8ff17e33d9dd7d5e28ed4 (patch)
tree07c376828675d6e9d737cf1e5bbc1e4345eb23e6 /modules/chdir-long
parent02fd4eb4561842dee666b709fbbb1632c4357d2d (diff)
downloadgnulib-fc333501ca97880108c8ff17e33d9dd7d5e28ed4.tar.gz
backupfile, chdir-long, fts, savedir: make safer
* lib/backupfile.c (includes): Use "dirent--.h", since numbered_backup can write to stderr during readdir. * lib/savedir.c (includes): Likewise. * lib/chdir-long.c (includes): Use "fcntl--.h", since openat emulation can write to stderr on failure. * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat. * lib/getcwd.c: Document why opendir_safer is unused. * lib/glob.c: Likewise. * lib/scandir.c: Likewise. * lib/openat-proc.c: Likewise, for open_safer. * modules/backupfile (Depends-on): Add dirent-safer. * modules/savedir (Depends-on): Likewise. * modules/fts (Depends-on): Add dirent-safer and openat-safer. * modules/chdir-long (Depends-on): Add openat-safer. Signed-off-by: Eric Blake <ebb9@byu.net>
Diffstat (limited to 'modules/chdir-long')
-rw-r--r--modules/chdir-long2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/chdir-long b/modules/chdir-long
index 4025b45afc..cdcb9eb70e 100644
--- a/modules/chdir-long
+++ b/modules/chdir-long
@@ -10,7 +10,7 @@ Depends-on:
atexit
fchdir
fcntl-h
-openat
+openat-safer
memchr
mempcpy
memrchr