diff options
author | Maciej Zenczykowski <maze@google.com> | 2011-04-04 15:30:32 +0200 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2011-04-04 15:30:32 +0200 |
commit | a239728ec064666025de2723997d87b176d57fd6 (patch) | |
tree | 20daf27af7f9d9fd12a6c0d1bf5f546afad5c21d /extensions/libipt_realm.c | |
parent | 8d6492d582c7284217c042d5638cf50174e5fbfd (diff) |
mark newly opened fds as FD_CLOEXEC (close on exec)
(This is iptables-1.4.3.1-cloexec.patch from RedHat iptables.src.rpm)
Signed-off-by: Maciej Zenczykowski <maze@google.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'extensions/libipt_realm.c')
-rw-r--r-- | extensions/libipt_realm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/libipt_realm.c b/extensions/libipt_realm.c index a2505706..17b1754e 100644 --- a/extensions/libipt_realm.c +++ b/extensions/libipt_realm.c @@ -49,7 +49,7 @@ static void load_realms(void) int id; struct realmname *oldnm = NULL, *newnm = NULL; - fil = fopen(rfnm, "r"); + fil = fopen(rfnm, "re"); if (!fil) { rdberr = 1; return; |