]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
dmesg: don't use pager for --follow
authorKarel Zak <kzak@redhat.com>
Mon, 29 Jul 2013 11:48:20 +0000 (13:48 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 29 Jul 2013 11:51:35 +0000 (13:51 +0200)
References: https://bugzilla.redhat.com/show_bug.cgi?id=984666
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/dmesg.c

index 88713d55db07b7504955c0845b8d58defcc5a518..b55ed8eb99e847ef1b14cca728f6fcc6cc7a3e9e 100644 (file)
@@ -1378,7 +1378,8 @@ int main(int argc, char *argv[])
                                 "facility, decode, delta, ctime or notime options"));
 
        ctl.color = colors_init(colormode) ? 1 : 0;
-
+       if (ctl.follow)
+               nopager = 1;
        ctl.pager = nopager ? 0 : ctl.pager;
        if (ctl.pager)
                setup_pager();