]> git.ipfire.org Git - thirdparty/util-linux.git/commit
more: avoid infinite loop on --squeeze
authorKarel Zak <kzak@redhat.com>
Mon, 2 May 2022 10:57:13 +0000 (12:57 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 20 Jul 2022 15:35:17 +0000 (17:35 +0200)
commitb269ca07383ae93589e36544da414931cdb6e3d7
tree1cbe0dd6e7d9a9d6b2c9a7741b11d5febda96bac
parentb69ba6ed69fabda339f40593745c69e637fb9fce
more: avoid infinite loop on --squeeze

The command 'echo | more -s' ends in infinite loop if exit-on-EOF is
disabled (default now). We need to call more_key_command() to ask for
user's reaction.

Fixes: https://github.com/util-linux/util-linux/issues/1669
Signed-off-by: Karel Zak <kzak@redhat.com>
text-utils/more.c