close-on-exec

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23449 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2008-07-27 12:09:39 +00:00
parent d6c66ef961
commit ffd78392d3

View File

@@ -56,6 +56,7 @@ check_one_file(krb5_context context,
f = fopen (filename, "r");
if (f == NULL)
return errno;
rk_cloexec_file(f);
/* check type and mode of file */
if (fstat(fileno(f), &st) != 0) {