fts: make directory fds more robust
authorEric Blake <ebb9@byu.net>
Tue, 1 Sep 2009 20:06:37 +0000 (14:06 -0600)
committerEric Blake <ebb9@byu.net>
Thu, 3 Sep 2009 02:34:41 +0000 (20:34 -0600)
commitb4b4678297df055617c13530d8d455ea95cc1e50
treeb75f88e7dd35cd8e5d5ac123d433bbabc07148d0
parentfc333501ca97880108c8ff17e33d9dd7d5e28ed4
fts: make directory fds more robust

* lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
(opendirat): Specify O_DIRECTORY, and add fallbacks for safety.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
lib/fts.c