close-on-exec

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23470 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2008-07-27 12:17:35 +00:00
parent c50ae6b63c
commit 96641812d5

View File

@@ -45,6 +45,7 @@ from_file(const char *fn, const char *target_domain,
f = fopen(fn, "r");
if (f == NULL)
return ENOENT;
rk_cloexec_file(f);
while (fgets(buf, sizeof(buf), f) != NULL) {
char *d, *u, *p;