summaryrefslogtreecommitdiff
path: root/usr.bin/less
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-11-09 18:41:47 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-11-09 18:41:47 +0000
commit302e9104b8b3669882783f2d92030ea28562344d (patch)
treec1bacee5cb621b97b26f436c3ec05afe0beca438 /usr.bin/less
parentf35db35223b2f74a59f17bf91972e9758f42ff0d (diff)
stop acting like "more" if progname is "page"; ok millert
Diffstat (limited to 'usr.bin/less')
-rw-r--r--usr.bin/less/main.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/less/main.c b/usr.bin/less/main.c
index 192894e6855..2754bd120ae 100644
--- a/usr.bin/less/main.c
+++ b/usr.bin/less/main.c
@@ -75,10 +75,9 @@ main(int argc, char *argv[])
* act like LESS_IS_MORE is set. We have to set this as early
* as possible for POSIX.
*/
- if ((strcmp(progname, "more") == 0) ||
- (strcmp(progname, "page") == 0)) {
+ if (strcmp(progname, "more") == 0)
less_is_more = 1;
- } else {
+ else {
s = lgetenv("LESS_IS_MORE");
if (s != NULL && *s != '\0')
less_is_more = 1;