summaryrefslogtreecommitdiffstats
path: root/contrib/less
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2007-06-16 02:43:44 +0000
committerdelphij <delphij@FreeBSD.org>2007-06-16 02:43:44 +0000
commit2ef4baf470b65f11726bd097a06d5250b7fb4f2c (patch)
treeeaaf13298d9182f98efecce6b2f0018a69a3dd76 /contrib/less
parenta20ceaaec6433662a8f35f62282b637923117cd1 (diff)
downloadFreeBSD-src-2ef4baf470b65f11726bd097a06d5250b7fb4f2c.zip
FreeBSD-src-2ef4baf470b65f11726bd097a06d5250b7fb4f2c.tar.gz
In previous releases of FreeBSD we have enforced -EfGm, and the
new less(1) version enforced only -Em. Restore old behavior in respect with POLA. Submitted by: ru (on -current@)
Diffstat (limited to 'contrib/less')
-rw-r--r--contrib/less/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/less/main.c b/contrib/less/main.c
index 33e8600..6d0a022 100644
--- a/contrib/less/main.c
+++ b/contrib/less/main.c
@@ -135,6 +135,9 @@ main(argc, argv)
init_prompt();
+ if (less_is_more)
+ scan_option("-fG");
+
s = lgetenv(less_is_more ? "MORE" : "LESS");
if (s != NULL)
scan_option(save(s));
OpenPOWER on IntegriCloud