ports/misc/lazyread/files/patch-lazyread.c
Dmitry Marakasov fcc5a76608 - Rename misc/lr to misc/lazyread to reflect upstream name and avoid conflicts with sysutils/lr
- Simplify and fix lesspipe.sh handling (add missing argument, and assume it always exists)
- Cleanup and simplify the port

PR:		221206
Approved by:	maintainer timeout (mich, 2 weeks)
2017-08-22 16:33:59 +00:00

11 lines
398 B
C

--- lazyread.c.orig 2003-02-02 13:28:15 UTC
+++ lazyread.c
@@ -377,7 +377,7 @@ char qfilename[BUFMAX]; /* quoted filena
printf("Loading..\n");
/* $LESSOPEN will look like: |/usr/bin/lesspipe.sh %s */
- lesspipe = getenv("LESSOPEN");
+ lesspipe = "|/usr/bin/lesspipe.sh %s";
if (lesspipe) {
/* strip off the leading | */
if ((c = strchr(lesspipe, '|'))) {