mirror of
https://github.com/openwrt/routing.git
synced 2025-02-23 22:05:07 +00:00
Refreshed patches. Removed one since OpenWrt no longer uses union mounts. Fixed up gcc10 patch as well. Signed-off-by: Rosen Penev <rosenp@gmail.com>
30 lines
791 B
Diff
30 lines
791 B
Diff
--- a/vtysh/vtysh.c
|
|
+++ b/vtysh/vtysh.c
|
|
@@ -253,7 +253,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. */
|
|
@@ -2214,7 +2214,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')
|
|
@@ -2231,7 +2231,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);
|
|
}
|
|
|