close-on-exec
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23451 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -210,6 +210,7 @@ _krb5_plugin_find(krb5_context context,
|
|||||||
d = opendir(*di);
|
d = opendir(*di);
|
||||||
if (d == NULL)
|
if (d == NULL)
|
||||||
continue;
|
continue;
|
||||||
|
rk_cloexec(dirfd(d));
|
||||||
|
|
||||||
while ((entry = readdir(d)) != NULL) {
|
while ((entry = readdir(d)) != NULL) {
|
||||||
asprintf(&path, "%s/%s", *di, entry->d_name);
|
asprintf(&path, "%s/%s", *di, entry->d_name);
|
||||||
|
Reference in New Issue
Block a user