diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-03-07 21:28:09 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-03-07 21:28:09 +0100 |
commit | a4c41bf3fa905c38e6e4d159c13eed890d53838b (patch) | |
tree | 26082fb88e1fd009a4c99ff6bdc4e590d5ab707d /src | |
parent | 43447fb72693d62363a1a271dacc70d400ed685b (diff) |
pager: always override LESS
https://bugzilla.redhat.com/show_bug.cgi?id=868383
Primary reason to do this is to ensure "-e" works as intended, and is
not ignored because the user set his own LESS variable.
Diffstat (limited to 'src')
-rw-r--r-- | src/shared/pager.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/pager.c b/src/shared/pager.c index 4ffb530e93..e9aa022a73 100644 --- a/src/shared/pager.c +++ b/src/shared/pager.c @@ -86,9 +86,9 @@ int pager_open(bool jump_to_end) { close_pipe(fd); if (jump_to_end) - setenv("LESS", "FRSXK+G", 0); + setenv("LESS", "FRSXK+G", 1); else - setenv("LESS", "FRSXK", 0); + setenv("LESS", "FRSXK", 1); /* Make sure the pager goes away when the parent dies */ if (prctl(PR_SET_PDEATHSIG, SIGTERM) < 0) |