close-on-exec

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23465 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2008-07-27 12:15:47 +00:00
parent e55772d6cf
commit 257fd5237c

View File

@@ -157,6 +157,7 @@ read_key(ENGINE *engine, const char *rsa_key)
f = fopen(rsa_key, "r");
if (f == NULL)
err(1, "could not open file %s", rsa_key);
rk_cloexec_file(f);
size = fread(buf, 1, sizeof(buf), f);
fclose(f);