From 2ca8cc154dd137be025a8cf20530d064ff731ac3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20=C5=BBenczykowski?= Date: Wed, 8 Apr 2020 07:16:11 -0700 Subject: Revert "iptables: flush stdout after every verbose log." MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit e2e435dc2631bedb9a7a6db2cf5f595b2039c748. We'll need to reapply this after the merge of 1.8.3. Signed-off-by: Maciej Żenczykowski Change-Id: I3d010cfca2db7a9d023c970afd4e837775128f03 --- iptables/ip6tables-restore.c | 4 +--- iptables/iptables-restore.c | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) (limited to 'iptables') diff --git a/iptables/ip6tables-restore.c b/iptables/ip6tables-restore.c index 28484aae..3706b981 100644 --- a/iptables/ip6tables-restore.c +++ b/iptables/ip6tables-restore.c @@ -176,10 +176,8 @@ int ip6tables_restore_main(int argc, char *argv[]) if (buffer[0] == '\n') continue; else if (buffer[0] == '#') { - if (verbose) { + if (verbose) fputs(buffer, stdout); - fflush(stdout); - } continue; } else if ((strcmp(buffer, "COMMIT\n") == 0) && (in_table)) { if (!testing) { diff --git a/iptables/iptables-restore.c b/iptables/iptables-restore.c index 3a08d0b3..daee5fd9 100644 --- a/iptables/iptables-restore.c +++ b/iptables/iptables-restore.c @@ -174,10 +174,8 @@ iptables_restore_main(int argc, char *argv[]) if (buffer[0] == '\n') continue; else if (buffer[0] == '#') { - if (verbose) { + if (verbose) fputs(buffer, stdout); - fflush(stdout); - } continue; } else if ((strcmp(buffer, "COMMIT\n") == 0) && (in_table)) { if (!testing) { -- cgit v1.2.3