aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/less
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2021-07-18 05:20:44 +0000
committerXin LI <delphij@FreeBSD.org>2021-07-18 05:20:44 +0000
commit30a1828c5196c415c8afc0d50f9131885d0c6b43 (patch)
treea8fa998faad3064f1fa77797a05bc8d5202ff79b /usr.bin/less
parent76fffd0a865374e1e09d8f61f36bfbda918da5c7 (diff)
parent1f8b3bb911e37330e00dab1b1e6cba65c573e63c (diff)
downloadsrc-30a1828c5196c415c8afc0d50f9131885d0c6b43.tar.gz
src-30a1828c5196c415c8afc0d50f9131885d0c6b43.zip
Diffstat (limited to 'usr.bin/less')
-rw-r--r--usr.bin/less/Makefile2
-rw-r--r--usr.bin/less/defines.h6
2 files changed, 6 insertions, 2 deletions
diff --git a/usr.bin/less/Makefile b/usr.bin/less/Makefile
index 4ddef921eb14..faa4fe7ca972 100644
--- a/usr.bin/less/Makefile
+++ b/usr.bin/less/Makefile
@@ -5,7 +5,7 @@ SRCS= main.c screen.c brac.c ch.c charset.c cmdbuf.c command.c cvt.c \
decode.c edit.c filename.c forwback.c help.c ifile.c input.c \
jump.c line.c linenum.c lsystem.c mark.c optfunc.c option.c \
opttbl.c os.c output.c pattern.c position.c prompt.c search.c \
- signal.c tags.c ttyin.c version.c
+ signal.c tags.c ttyin.c version.c xbuf.c
SCRIPTS=lesspipe.sh zless.sh
SCRIPTSNAME_lesspipe.sh=lesspipe.sh
LIBADD= ncursesw
diff --git a/usr.bin/less/defines.h b/usr.bin/less/defines.h
index a3a44cd15875..497644f23a48 100644
--- a/usr.bin/less/defines.h
+++ b/usr.bin/less/defines.h
@@ -81,7 +81,7 @@
* PIPEC is 1 if you wish to have the "|" command
* which allows the user to pipe data into a shell command.
*/
-#define PIPEC (!SECURE)
+#define PIPEC (!SECURE && HAVE_POPEN)
/*
* LOGFILE is 1 if you wish to allow the -o option (to create log files).
@@ -113,6 +113,7 @@
#define LESSKEYFILE ".less"
#define LESSKEYFILE_SYS "/etc/lesskey"
#define DEF_LESSKEYINFILE ".lesskey"
+#define LESSKEYINFILE_SYS "/etc/syslesskey"
#define LESSHISTFILE ".lesshst"
@@ -185,6 +186,9 @@
/* Define to 1 if you have the strstr() function. */
#define HAVE_STRSTR 1
+/* Define to 1 to support reading lesskey source files (not just binary). */
+#define HAVE_LESSKEYSRC 1
+
/*
* Sizes of various buffers.
*/