]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
findmnt: add missing newline in --raw, --pair and --list output formats
authorChristian Goeschel Ndjomouo <cgoesc2@wgu.edu>
Sat, 30 Aug 2025 02:41:04 +0000 (22:41 -0400)
committerChristian Goeschel Ndjomouo <cgoesc2@wgu.edu>
Sat, 30 Aug 2025 02:41:04 +0000 (22:41 -0400)
Addresses: #3711
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
misc-utils/findmnt.c

index 31350df78d16b516b22470c00e08e5a58875345d..c15d36418413cc6a10394f3ca237c154ed9d7da9 100644 (file)
@@ -1446,6 +1446,8 @@ static int poll_table(struct libmnt_table *tb, const char *tabfile,
 
                if (count) {
                        rc = scols_table_print_range(table, NULL, NULL);
+                       if (rc == 0 && !(findmnt->flags & FL_JSON))
+                               fputc('\n', scols_table_get_stream(table));
                        fflush(scols_table_get_stream(table));
                        if (rc)
                                goto done;