From: Lennart Poettering Date: Tue, 4 Jan 2011 00:18:57 +0000 (+0100) Subject: systemctl: drop redundant getenv('LESS') check X-Git-Tag: v16~26 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4c00bf25614779a58ca57dfe8e2c477c926c5c2b;p=systemd systemctl: drop redundant getenv('LESS') check --- diff --git a/src/systemctl.c b/src/systemctl.c index 0908b6ae..5d2efbe9 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);