History log of /openbsd-current/usr.bin/less/opttbl.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.20 14-Apr-2024 guenther

Delete support for the LESSOPEN and LESSCLOSE environment variables
aka the "Input Preprocessor": it's been a source for multiple
security bugs in the past as everything has to deal with handling
arbitrary filenames and generally resulted in multiple TOCTOU issues.
The base system never included a default LESSOPEN setting like some
Linux distributions did, but it's a suds-filled sink full of knives
to try to use safely.

ok tb@ deraadt@ millert@


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE OPENBSD_7_2_BASE OPENBSD_7_3_BASE OPENBSD_7_4_BASE OPENBSD_7_5_BASE
# 1.19 17-Sep-2016 deraadt

little bit more KNF


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.18 12-Nov-2015 mmcc

Back out of is_optchar() removal. daniel@ was not a fan.


# 1.17 12-Nov-2015 mmcc

Inline is_optchar(), a helper function with only one usage.

ok nicm@, stsp@


# 1.16 12-Nov-2015 mmcc

Cast three ctype functions' arguments to unsigned char and simplify a
helper function in the process.

ok tedu@


# 1.15 06-Nov-2015 nicm

Garrett D'Amore has agreed to moving his copyright line up above the
terms with the existing copyright, so it is clear it applies the same
terms.


# 1.14 05-Nov-2015 nicm

Replace less with the cleaned-up fork of less 458 maintained by Garrett
D'Amore at https://github.com/gdamore/less-fork. This has significantly
less portability goop, has a tidied up code style, uses terminfo instead
of termcap, and is has stricter POSIX compliance.

Many of our local changes have been accepted upstream: substantial
remaining local changes are code to read help files from /usr/share
rather than compiling them in, man page and help improvements, and some
tweaks to the default options.

Review and testing by millert, ok deraadt


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.13 29-Apr-2014 millert

Remove support for the obsolete (non-POSIX) "more -d" prompt.
This was a local change that was only enabled when the LESS_IS_MORE
environment variable was set and not when invoked as "more".
OK shadchin@ jmc@


# 1.12 25-Apr-2014 shadchin

Merge Less 458 plus local patches

ok guenther@, ok jmc@ for man bits


Revision tags: OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE
# 1.11 27-Mar-2012 nicm

Reverse the default of the -c flag from off to on to prevent the text
being displayed in the wrong place initially and then jumping when first
redrawn (such as when searching).

ok deraadt sthen


Revision tags: OPENBSD_5_1_BASE
# 1.10 16-Sep-2011 shadchin

Merge in less 444 plus local changes

ok nicm@


Revision tags: OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE
# 1.9 03-Jul-2010 deraadt

use SMALL_PROGRAM to knock out some code


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE
# 1.8 14-Apr-2003 millert

Make the GNU_OPTIONS define actually do something (was a no-op)


# 1.7 14-Apr-2003 millert

o go back to using a help file instead of embedding it in the binary
o deal with HELPFILE not being defined
o add a SMALL definition to make a smaller less for the boot floppies
This still needs to be pared down a bit for the SMALL case


# 1.6 13-Apr-2003 millert

Merge in less-381 w/ local changes and remove obsolete files.


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE
# 1.5 19-Nov-2001 mpech

kill more registers

millert@ ok


Revision tags: OPENBSD_2_9_BASE OPENBSD_3_0_BASE
# 1.4 29-Jan-2001 niklas

$OpenBSD$


Revision tags: OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE OPENBSD_2_7_BASE OPENBSD_2_8_BASE
# 1.3 13-May-1998 deraadt

less "-d" descriptions swapped; mouse@Rodents.Montreal.QC.CA


Revision tags: OPENBSD_2_0_BASE OPENBSD_2_1_BASE OPENBSD_2_2_BASE OPENBSD_2_3_BASE OpenBSD_1_2
# 1.2 21-Sep-1996 etheisen

Incorporate less modifications for more and our bug fixes from previous
version.


# 1.1 21-Sep-1996 etheisen

branches: 1.1.1;
Initial revision


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.19 17-Sep-2016 deraadt

little bit more KNF


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.18 12-Nov-2015 mmcc

Back out of is_optchar() removal. daniel@ was not a fan.


# 1.17 12-Nov-2015 mmcc

Inline is_optchar(), a helper function with only one usage.

ok nicm@, stsp@


# 1.16 12-Nov-2015 mmcc

Cast three ctype functions' arguments to unsigned char and simplify a
helper function in the process.

ok tedu@


# 1.15 06-Nov-2015 nicm

Garrett D'Amore has agreed to moving his copyright line up above the
terms with the existing copyright, so it is clear it applies the same
terms.


# 1.14 05-Nov-2015 nicm

Replace less with the cleaned-up fork of less 458 maintained by Garrett
D'Amore at https://github.com/gdamore/less-fork. This has significantly
less portability goop, has a tidied up code style, uses terminfo instead
of termcap, and is has stricter POSIX compliance.

Many of our local changes have been accepted upstream: substantial
remaining local changes are code to read help files from /usr/share
rather than compiling them in, man page and help improvements, and some
tweaks to the default options.

Review and testing by millert, ok deraadt


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.13 29-Apr-2014 millert

Remove support for the obsolete (non-POSIX) "more -d" prompt.
This was a local change that was only enabled when the LESS_IS_MORE
environment variable was set and not when invoked as "more".
OK shadchin@ jmc@


# 1.12 25-Apr-2014 shadchin

Merge Less 458 plus local patches

ok guenther@, ok jmc@ for man bits


Revision tags: OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE
# 1.11 27-Mar-2012 nicm

Reverse the default of the -c flag from off to on to prevent the text
being displayed in the wrong place initially and then jumping when first
redrawn (such as when searching).

ok deraadt sthen


Revision tags: OPENBSD_5_1_BASE
# 1.10 16-Sep-2011 shadchin

Merge in less 444 plus local changes

ok nicm@


Revision tags: OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE
# 1.9 03-Jul-2010 deraadt

use SMALL_PROGRAM to knock out some code


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE
# 1.8 14-Apr-2003 millert

Make the GNU_OPTIONS define actually do something (was a no-op)


# 1.7 14-Apr-2003 millert

o go back to using a help file instead of embedding it in the binary
o deal with HELPFILE not being defined
o add a SMALL definition to make a smaller less for the boot floppies
This still needs to be pared down a bit for the SMALL case


# 1.6 13-Apr-2003 millert

Merge in less-381 w/ local changes and remove obsolete files.


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE
# 1.5 19-Nov-2001 mpech

kill more registers

millert@ ok


Revision tags: OPENBSD_2_9_BASE OPENBSD_3_0_BASE
# 1.4 29-Jan-2001 niklas

$OpenBSD$


Revision tags: OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE OPENBSD_2_7_BASE OPENBSD_2_8_BASE
# 1.3 13-May-1998 deraadt

less "-d" descriptions swapped; mouse@Rodents.Montreal.QC.CA


Revision tags: OPENBSD_2_0_BASE OPENBSD_2_1_BASE OPENBSD_2_2_BASE OPENBSD_2_3_BASE OpenBSD_1_2
# 1.2 21-Sep-1996 etheisen

Incorporate less modifications for more and our bug fixes from previous
version.


# 1.1 21-Sep-1996 etheisen

branches: 1.1.1;
Initial revision