From 4c00bf25614779a58ca57dfe8e2c477c926c5c2b Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 4 Jan 2011 01:18:57 +0100 Subject: [PATCH 1/1] systemctl: drop redundant getenv('LESS') check --- src/systemctl.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/systemctl.c b/src/systemctl.c index 0908b6ae0..5d2efbe95 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); -- 2.30.2