]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
findmnt: use line separator for --poll output
authorKarel Zak <kzak@redhat.com>
Fri, 10 Feb 2017 16:28:07 +0000 (17:28 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 21 Feb 2017 12:46:51 +0000 (13:46 +0100)
Addresses: https://github.com/karelzak/util-linux/issues/409
Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/findmnt.c

index eb6435f85e94a4e934ba243beb8ff495b6ba0e55..a5ab3c3a7d40f50bffbee270e604bb18a2c15e9f 100644 (file)
@@ -1142,6 +1142,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)
+                               fputc('\n', scols_table_get_stream(table));
                        fflush(stdout);
                        if (rc)
                                goto done;