]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libsmartcols: flush correct stream
authorThomas Weißschuh <thomas@t-8ch.de>
Tue, 12 Dec 2023 17:42:11 +0000 (18:42 +0100)
committerThomas Weißschuh <thomas@t-8ch.de>
Wed, 13 Dec 2023 18:29:33 +0000 (19:29 +0100)
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
(cherry picked from commit 36a853a9a71c46f088ab8f7416d68af112a59ce4)

misc-utils/findmnt.c

index fff9bde07dd95378dea639d82a7d108db47d8a98..1ae0bd66beea3141b2f4ca34fdfeb63974e906cb 100644 (file)
@@ -1272,7 +1272,7 @@ static int poll_table(struct libmnt_table *tb, const char *tabfile,
 
                if (count) {
                        rc = scols_table_print_range(table, NULL, NULL);
-                       fflush(stdout);
+                       fflush(scols_table_get_stream(table));
                        if (rc)
                                goto done;
                }