Merge pull request #325 from ecsv/batadv-2017.3
[lede-routing/.git] / patches / 170-use-supported-pagers.patch
diff --git a/patches/170-use-supported-pagers.patch b/patches/170-use-supported-pagers.patch
deleted file mode 100644 (file)
index fe1a4d9..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
---- a/vtysh/vtysh.c
-+++ b/vtysh/vtysh.c
-@@ -268,7 +268,7 @@ vtysh_pager_init (void)
-   if (pager_defined)
-     vtysh_pager_name = strdup (pager_defined);
-   else
--    vtysh_pager_name = strdup ("more");
-+    vtysh_pager_name = strdup ("cat");
- }
- /* Command execution over the vty interface. */
-@@ -1866,7 +1866,7 @@ DEFUN (vtysh_terminal_length,
- {
-   int lines;
-   char *endptr = NULL;
--  char default_pager[10];
-+  char default_pager[12];
-   lines = strtol (argv[0], &endptr, 10);
-   if (lines < 0 || lines > 512 || *endptr != '\0')
-@@ -1883,7 +1883,7 @@ DEFUN (vtysh_terminal_length,
-   if (lines != 0)
-     {
--      snprintf(default_pager, 10, "more -%i", lines);
-+      snprintf(default_pager, 12, "head -n %i", lines);
-       vtysh_pager_name = strdup (default_pager);
-     }