backupfile, chdir-long, fts, savedir: make safer
authorEric Blake <ebb9@byu.net>
Tue, 1 Sep 2009 18:25:01 +0000 (12:25 -0600)
committerEric Blake <ebb9@byu.net>
Thu, 3 Sep 2009 02:33:22 +0000 (20:33 -0600)
commitfc333501ca97880108c8ff17e33d9dd7d5e28ed4
tree07c376828675d6e9d737cf1e5bbc1e4345eb23e6
parent02fd4eb4561842dee666b709fbbb1632c4357d2d
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>
13 files changed:
ChangeLog
lib/backupfile.c
lib/chdir-long.c
lib/fts.c
lib/getcwd.c
lib/glob.c
lib/openat-proc.c
lib/savedir.c
lib/scandir.c
modules/backupfile
modules/chdir-long
modules/fts
modules/savedir