]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lib/pager: The variable need_in is always 1
authorTobias Stoeckmann <tobias@stoeckmann.org>
Mon, 19 Jan 2026 18:18:16 +0000 (19:18 +0100)
committerTobias Stoeckmann <tobias@stoeckmann.org>
Tue, 20 Jan 2026 16:36:45 +0000 (17:36 +0100)
commit695f8a7171479c0e06a0f342f9dddca0dc36072e
treef832be56eb4c12a0be38172b89d756a2fe5122f0
parentf1ecf7b35caf7d136586d7c8e4cb13e3e49e7943
lib/pager: The variable need_in is always 1

Right before start_command is called, cmd->in is set to -1. Thus,
need_in is always true.

This makes sense, since we create a pipe for tools to print data to
pager.

Remove obsolete code for better readability.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
lib/pager.c