util-linux/backport-libsmartcols-drop-spourious-newline-in-between-strea.patch

35 lines
1.0 KiB
Diff
Raw Normal View History

2024-12-16 02:37:59 +00:00
From b2b0bf88d35513a746c144f35826eb47692386dc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= <thomas@t-8ch.de>
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=UTF-8
Content-Transfer-Encoding: 8bit
scols_table_print_range() already appends a newline correctly.
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Reference:https://github.com/util-linux/util-linux/commit/b2b0bf88d35513a746c144f35826eb47692386dc
Conflict:NA
---
misc-utils/findmnt.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/misc-utils/findmnt.c b/misc-utils/findmnt.c
index 40b80b365..14ae2c5b4 100644
--- a/misc-utils/findmnt.c
+++ b/misc-utils/findmnt.c
@@ -1295,8 +1295,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.33.0