From 66b7e11a35987962a24c8f281b8730fb3260b2b5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thomas=20Wei=C3=9Fschuh?= Date: Tue, 12 Dec 2023 18:41:33 +0100 Subject: [PATCH] libsmartcols: drop spourious newline in between streamed JSON objects MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit scols_table_print_range() already appends a newline correctly. Signed-off-by: Thomas Weißschuh (cherry picked from commit b2b0bf88d35513a746c144f35826eb47692386dc) --- misc-utils/findmnt.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/misc-utils/findmnt.c b/misc-utils/findmnt.c index 733bbc13d2..fff9bde07d 100644 --- a/misc-utils/findmnt.c +++ b/misc-utils/findmnt.c @@ -1272,8 +1272,6 @@ static int poll_table(struct libmnt_table *tb, const char *tabfile, if (count) { rc = scols_table_print_range(table, NULL, NULL); - if (rc == 0) - fputc('\n', scols_table_get_stream(table)); fflush(stdout); if (rc) goto done; -- 2.47.2