close-on-exec

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

View File

@@ -162,6 +162,7 @@ write_v4_cc(krb5_context context, const char *tkfile,
free(path);
return ret;
}
rk_cloexec(fd);
if (fstat(fd, &sb) != 0 || !S_ISREG(sb.st_mode)) {
krb5_set_error_message(context, ret,