diff options
author | Paul Janzen <pjanzen@cvs.openbsd.org> | 1999-06-10 22:38:04 +0000 |
---|---|---|
committer | Paul Janzen <pjanzen@cvs.openbsd.org> | 1999-06-10 22:38:04 +0000 |
commit | e1ff3b5725e84a6aaa6367f03b0f19611f098f3e (patch) | |
tree | 58448540b9be32681cb4a1e7924a7f2fb418b574 /usr.sbin/named/nslookup/main.c | |
parent | 91e387e025fd867bb2fa8137068dae52cea527a5 (diff) |
Handle PAGER in a manner consistent with the Single Unix Specification:
that is, use PAGER rather than "more" if it is defined and non-null, not
just if it is defined.
Diffstat (limited to 'usr.sbin/named/nslookup/main.c')
-rw-r--r-- | usr.sbin/named/nslookup/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/named/nslookup/main.c b/usr.sbin/named/nslookup/main.c index 98e03e8f0b5..c32792e7350 100644 --- a/usr.sbin/named/nslookup/main.c +++ b/usr.sbin/named/nslookup/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.6 1998/11/23 18:00:58 deraadt Exp $ */ +/* $OpenBSD: main.c,v 1.7 1999/06/10 22:38:03 pjanzen Exp $ */ /* * ++Copyright++ 1985, 1989 @@ -66,7 +66,7 @@ char copyright[] = static char sccsid[] = "@(#)main.c 5.42 (Berkeley) 3/3/91"; static char rcsid[] = "$From: main.c,v 8.4 1996/11/11 06:36:54 vixie Exp $"; #else -static char rcsid[] = "$OpenBSD: main.c,v 1.6 1998/11/23 18:00:58 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: main.c,v 1.7 1999/06/10 22:38:03 pjanzen Exp $"; #endif #endif /* not lint */ @@ -325,7 +325,7 @@ main(argc, argv) PrintHostInfo(stdout, "Default Server:", defaultPtr); pager = getenv("PAGER"); - if (pager == NULL) { + if (pager == NULL || *pager == '\0') { pager = _PATH_PAGERCMD; } |