chiark / gitweb /
systemctl: drop redundant getenv('LESS') check
authorLennart Poettering <lennart@poettering.net>
Tue, 4 Jan 2011 00:18:57 +0000 (01:18 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 4 Jan 2011 00:18:57 +0000 (01:18 +0100)
src/systemctl.c

index 0908b6a..5d2efbe 100644 (file)
@@ -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);