From 729e3769c32242bbba26ea96900be005d52ce438 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 25 Jul 2011 04:58:02 +0200 Subject: systemctl: hook up new install logic This adds a number of new options to systemctl, for presets, reenabling, masking/unmask, and runtime operations. --- src/pager.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/pager.c') diff --git a/src/pager.c b/src/pager.c index 6ea25ada65..be284da962 100644 --- a/src/pager.c +++ b/src/pager.c @@ -39,13 +39,13 @@ void pager_open(void) { if (pager_pid > 0) return; - if (isatty(STDOUT_FILENO) <= 0) - return; - if ((pager = getenv("SYSTEMD_PAGER")) || (pager = getenv("PAGER"))) if (!*pager || streq(pager, "cat")) return; + if (isatty(STDOUT_FILENO) <= 0) + return; + /* Determine and cache number of columns before we spawn the * pager so that we get the value from the actual tty */ columns(); -- cgit v1.2.3-54-g00ecf