diff options
author | Maciej Żenczykowski <maze@google.com> | 2020-04-08 07:16:11 -0700 |
---|---|---|
committer | Maciej Żenczykowski <maze@google.com> | 2020-04-08 07:16:39 -0700 |
commit | 2ca8cc154dd137be025a8cf20530d064ff731ac3 (patch) | |
tree | 7c1fb89afddfa66d6eddecaf4f5c22e0fe4ef358 /iptables | |
parent | ea80eaf31e509bdd4d0e05ccd652b8f9e4896842 (diff) | |
download | iptables-2ca8cc154dd137be025a8cf20530d064ff731ac3.tar.gz |
Revert "iptables: flush stdout after every verbose log."
This reverts commit e2e435dc2631bedb9a7a6db2cf5f595b2039c748.
We'll need to reapply this after the merge of 1.8.3.
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I3d010cfca2db7a9d023c970afd4e837775128f03
Diffstat (limited to 'iptables')
-rw-r--r-- | iptables/ip6tables-restore.c | 4 | ||||
-rw-r--r-- | iptables/iptables-restore.c | 4 |
2 files changed, 2 insertions, 6 deletions
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) { |