From 1e3fe79e3a5346bc2dbf8108afec1e69a42ff822 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Tue, 28 Mar 2023 09:50:17 -0700 Subject: Set close-on-exec when opening files Signed-off-by: Alan Coopersmith --- src/getauth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/getauth.c') diff --git a/src/getauth.c b/src/getauth.c index abd5644..b792e3e 100644 --- a/src/getauth.c +++ b/src/getauth.c @@ -146,7 +146,7 @@ _IceGetPoValidAuthIndices ( if (access (filename, R_OK) != 0) /* checks REAL id */ return; - if (!(auth_file = fopen (filename, "rb"))) + if (!(auth_file = fopen (filename, "rb" FOPEN_CLOEXEC))) return; for (;;) -- cgit v1.2.3