Add rk_cloexec_dir() to lib/roken

This commit is contained in:
Asanka Herath
2009-12-22 14:03:39 -05:00
parent ff11a8ae43
commit 68cfbb7e19
6 changed files with 18 additions and 6 deletions

View File

@@ -205,9 +205,7 @@ load_plugins(krb5_context context)
d = opendir(*di);
if (d == NULL)
continue;
#ifdef HAVE_DIRFD
rk_cloexec(dirfd(d));
#endif
rk_cloexec_dir(d);
while ((entry = readdir(d)) != NULL) {
char *n = entry->d_name;