From 5fb493c99846cb475dab7321a4d835025c96051b Mon Sep 17 00:00:00 2001 From: David Härdeman Date: Wed, 10 Jun 2020 23:34:29 +0200 Subject: Some more close-on-exec --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main.c') diff --git a/main.c b/main.c index 0f41ea0..61a6442 100644 --- a/main.c +++ b/main.c @@ -74,7 +74,7 @@ cfg_read(struct cfg *cfg) { FILE *cfgfile; - cfgfile = fopen("./mcproxy.conf", "r"); + cfgfile = fopen("./mcproxy.conf", "re"); if (!cfgfile) { if (errno == ENOENT) return; -- cgit v1.2.3