]> git.ipfire.org Git - thirdparty/util-linux.git/commit
Revert "lib/pager: Apply pager-specific fixes only when needed"
authorThomas Weißschuh <thomas@t-8ch.de>
Sat, 13 Apr 2024 07:42:39 +0000 (09:42 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 16 Apr 2024 09:04:26 +0000 (11:04 +0200)
commit558ea65e3da74588dd2540406920c3fea310f4fa
tree5610307a75d5bd23e33bacd4d5a5948ac5df9086
parent013c3665556a3820952a4d80e62670ad32a48949
Revert "lib/pager: Apply pager-specific fixes only when needed"

Less is not always detectable, as it can be hidden behind symlinks or
wrapper as for example in a default Debian installation.
Also testing for the literal string "less" does not match full path
specifications like "/usr/bin/less".

Instead always apply the fixes.

This reverts commit c10ad975895372122f72c8d9da089b6ea69f778b.
Closes #2951
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
(cherry picked from commit 966cb1382b59a9c1d5735b47aba27050c6d5c7e5)
lib/pager.c