chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
systemctl: drop redundant getenv('LESS') check
[elogind.git]
/
src
/
systemctl.c
diff --git
a/src/systemctl.c
b/src/systemctl.c
index 0908b6ae02e69304493135f93d6210c18d43804c..5d2efbe95f8709026b7c1ff6044fdafc3af898e4 100644
(file)
--- a/
src/systemctl.c
+++ b/
src/systemctl.c
@@
-5328,8
+5328,7
@@
static void pager_open(void) {
dup2(fd[0], STDIN_FILENO);
close_pipe(fd);
- if (!getenv("LESS"))
- setenv("LESS", "FRSX", 0);
+ setenv("LESS", "FRSX", 0);
prctl(PR_SET_PDEATHSIG, SIGTERM);