From 39ecfa21bd94a354416df09d5d6000dc298f52bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Sun, 27 Jul 2008 12:13:12 +0000 Subject: [PATCH] close-on-exec git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23458 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/hx509/softp11.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/hx509/softp11.c b/lib/hx509/softp11.c index 4b7a28f8e..29e0d3767 100644 --- a/lib/hx509/softp11.c +++ b/lib/hx509/softp11.c @@ -696,6 +696,7 @@ read_conf_file(const char *fn, CK_USER_TYPE userType, const char *pin) st_logf("can't open configuration file %s\n", fn); return CKR_GENERAL_ERROR; } + rk_cloexec_file(f); while(fgets(buf, sizeof(buf), f) != NULL) { buf[strcspn(buf, "\n")] = '\0';