summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-01-04 01:18:57 +0100
committerLennart Poettering <lennart@poettering.net>2011-01-04 01:18:57 +0100
commit4c00bf25614779a58ca57dfe8e2c477c926c5c2b (patch)
tree8741a6c415db6203c9059097a9c0b7ba65aa3b0d
parentec14911e0d6b9473f4f1d6b43d7fcd67c48c2ffc (diff)
systemctl: drop redundant getenv('LESS') check
-rw-r--r--src/systemctl.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/systemctl.c b/src/systemctl.c
index 0908b6ae02..5d2efbe95f 100644
--- 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);