systemctl: drop redundant getenv('LESS') check

This commit is contained in:
Lennart Poettering 2011-01-04 01:18:57 +01:00
parent ec14911e0d
commit 4c00bf2561

View File

@ -5328,7 +5328,6 @@ static void pager_open(void) {
dup2(fd[0], STDIN_FILENO); dup2(fd[0], STDIN_FILENO);
close_pipe(fd); close_pipe(fd);
if (!getenv("LESS"))
setenv("LESS", "FRSX", 0); setenv("LESS", "FRSX", 0);
prctl(PR_SET_PDEATHSIG, SIGTERM); prctl(PR_SET_PDEATHSIG, SIGTERM);