summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Bingner <sam@bingner.com>2019-11-15 16:54:02 -1000
committerSam Bingner <sam@bingner.com>2019-11-15 16:54:02 -1000
commitbbc833a503b148701c64ed5be79f298b7911e340 (patch)
tree45863c470dbac3aaddc07896d8e99fb22b49c9b0
parentf745390bb407566404521c39cddccedf9b2f296f (diff)
Add the diff used for nano in checkra1n
-rw-r--r--data/nano/binpack.diff.cr12
1 files changed, 12 insertions, 0 deletions
diff --git a/data/nano/binpack.diff.cr b/data/nano/binpack.diff.cr
new file mode 100644
index 000000000..fa498fd11
--- /dev/null
+++ b/data/nano/binpack.diff.cr
@@ -0,0 +1,12 @@
+--- nano-4.5/src/nano.c 2019-11-13 17:10:31.000000000 -1000
++++ nano-4.5/src/nano.c.new 2019-11-13 17:10:08.000000000 -1000
+@@ -1899,6 +1899,9 @@
+
+ int main(int argc, char **argv)
+ {
++ if (!getenv("TERMINFO")) {
++ setenv("TERMINFO", "/binpack/usr/share/terminfo", true);
++ }
+ int stdin_flags, optchr;
+ #ifdef ENABLE_NANORC
+ bool ignore_rcfiles = FALSE;