]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lib/pager: Do not resolve directories with PATH
authorTobias Stoeckmann <tobias@stoeckmann.org>
Mon, 2 Feb 2026 19:23:45 +0000 (20:23 +0100)
committerTobias Stoeckmann <tobias@stoeckmann.org>
Mon, 2 Feb 2026 19:27:01 +0000 (20:27 +0100)
commit5aa38c36f80cdb7ae7bfbb1922b6fb133bad9fe6
tree61a35f1d4433a14533bbdb728133b3d8fca115c7
parentdcdf40efec22fc6a3eb2d41991f8fadcd78f110a
lib/pager: Do not resolve directories with PATH

If PAGER contains any slash in program part, avoid resolving it with
PATH environment variable. Even if it is found there (in a
subdirectory), sh -c won't execute it.

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