close-on-exec

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23451 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2008-07-27 12:10:30 +00:00
parent ae31169249
commit b2eed84f4c

View File

@@ -210,6 +210,7 @@ _krb5_plugin_find(krb5_context context,
d = opendir(*di);
if (d == NULL)
continue;
rk_cloexec(dirfd(d));
while ((entry = readdir(d)) != NULL) {
asprintf(&path, "%s/%s", *di, entry->d_name);