If no tabfiles are specified, default to watching /proc/self/mountinfo rather than exiting silently with EXIT_FAILURE. Signed-off-by: Dave Reisner <dreisner@xxxxxxxxxxxxx> --- misc-utils/findmnt.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/misc-utils/findmnt.c b/misc-utils/findmnt.c index 9005483..eab224a 100644 --- a/misc-utils/findmnt.c +++ b/misc-utils/findmnt.c @@ -1320,8 +1320,7 @@ int main(int argc, char *argv[]) */ if (flags & FL_POLL) { /* poll mode (accept the first tabfile only) */ - if (tabfiles && ntabfiles > 0) - rc = poll_table(tb, *tabfiles, timeout, tt, direction); + rc = poll_table(tb, tabfiles ? *tabfiles : _PATH_PROC_MOUNTINFO, timeout, tt, direction); } else if ((tt_flags & TT_FL_TREE) && is_listall_mode()) /* whole tree */ -- 1.7.10.2 -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html