diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2023-03-28 09:50:17 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2023-03-28 09:50:17 -0700 |
commit | 1e3fe79e3a5346bc2dbf8108afec1e69a42ff822 (patch) | |
tree | 3433b52e5001768b3963b06bcd0239aae20a0fbb /src/getauth.c | |
parent | 5b9d4d27a2b8441e966d701bf337ace848c4e4fd (diff) |
Set close-on-exec when opening files
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/getauth.c')
-rw-r--r-- | src/getauth.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 (;;) |