X-Git-Url: http://git.ozo.com/?p=openwrt-10.03%2F.git;a=blobdiff_plain;f=package%2Fquagga%2Fnot-patches%2Fpatches-upstream%2Fold%2F170-use-supported-pagers.patch;fp=package%2Fquagga%2Fnot-patches%2Fpatches-upstream%2Fold%2F170-use-supported-pagers.patch;h=0a7d7f95c76fab785dbd90395557b7a39ef26900;hp=0000000000000000000000000000000000000000;hb=30b136923fe6a874a4bbd430c83b7d656607931b;hpb=0b111996782aa58aef2891eeccdb8bd9875c27ae diff --git a/package/quagga/not-patches/patches-upstream/old/170-use-supported-pagers.patch b/package/quagga/not-patches/patches-upstream/old/170-use-supported-pagers.patch new file mode 100644 index 000000000..0a7d7f95c --- /dev/null +++ b/package/quagga/not-patches/patches-upstream/old/170-use-supported-pagers.patch @@ -0,0 +1,29 @@ +--- 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. */ +@@ -1885,7 +1885,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') +@@ -1902,7 +1902,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); + } +