]> 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>
Tue, 12 Dec 2023 17:44:14 +0000 (18:44 +0100)
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
misc-utils/findmnt.c

index 14ae2c5b4881ebd1987aa2c4c0f8cee5b133a09d..ecd56990ce06a1b0e9c79bfcd56ffc73acb9ecba 100644 (file)
@@ -1295,7 +1295,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;
                }