]> 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>
Mon, 2 May 2022 10:57:13 +0000 (12:57 +0200)
commit5c8f5f171d5621a2bc540c21cc62f308a43d4fc5
treea9f4f5a359a477a620eb2ca4ab70d27a67b2e049
parenta5e55415b779a2e7fd7affe71251c104cc0694ae
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