Do not warn that we edit a file opened by LESSOPEN. - pkgsrc-localpatches - leot's pkgsrc LOCALPATCHES
(HTM) hg clone https://bitbucket.org/iamleot/pkgsrc-localpatches
(DIR) Log
(DIR) Files
(DIR) Refs
---
(DIR) changeset 34101ff955b4ca646476f4f1afb2c2622d3561ab
(DIR) parent e7d999a1d9e14399607b123f66b5e65e9b63bb80
(HTM) Author: Leonardo Taccari <iamleot@gmail.com>
Date: Sun, 16 Jun 2019 19:37:07
Do not warn that we edit a file opened by LESSOPEN.
Diffstat:
misc/less/patch-command.c | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)
---
diff -r e7d999a1d9e1 -r 34101ff955b4 misc/less/patch-command.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/less/patch-command.c Sun Jun 16 19:37:07 2019 +0200
@@ -0,0 +1,18 @@
+$NetBSD$
+
+Avoid warning to warn that the file was viewed via LESSOPEN.
+
+--- command.c.orig 2019-06-11 18:12:01.000000000 +0000
++++ command.c
+@@ -1647,11 +1647,6 @@ commands(VOID_PARAM)
+ error("Cannot edit standard input", NULL_PARG);
+ break;
+ }
+- if (get_altfilename(curr_ifile) != NULL)
+- {
+- error("WARNING: This file was viewed via LESSOPEN",
+- NULL_PARG);
+- }
+ start_mca(A_SHELL, "!", ml_shell, 0);
+ /*
+ * Expand the editor prototype string