fts: avoid leaking fds
authorEric Blake <ebb9@byu.net>
Wed, 2 Sep 2009 20:44:51 +0000 (14:44 -0600)
committerEric Blake <ebb9@byu.net>
Thu, 3 Sep 2009 02:35:45 +0000 (20:35 -0600)
commitcd98e9dbd7d4a480aef908745ce7c65ceb5299d4
tree84ce4cb62fb993c8d08c754c388ee02edb653569
parentb4b4678297df055617c13530d8d455ea95cc1e50
fts: avoid leaking fds

* modules/fts (Depends-on): Add cloexec.
* lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
flag.

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