source: branches/packages_10.03.1/net/quagga/patches-old/170-use-supported-pagers.patch @ 27791

Last change on this file since 27791 was 27791, checked in by jow, 5 years ago

[packages_10.03.1] merge r27790

File size: 787 bytes
  • vtysh/vtysh.c

    a b vtysh_pager_init () 
    243243  if (pager_defined) 
    244244    vtysh_pager_name = strdup (pager_defined); 
    245245  else 
    246     vtysh_pager_name = strdup ("more"); 
     246    vtysh_pager_name = strdup ("cat"); 
    247247} 
    248248 
    249249/* Command execution over the vty interface. */ 
    DEFUN (vtysh_terminal_length, 
    17451745{ 
    17461746  int lines; 
    17471747  char *endptr = NULL; 
    1748   char default_pager[10]; 
     1748  char default_pager[12]; 
    17491749 
    17501750  lines = strtol (argv[0], &endptr, 10); 
    17511751  if (lines < 0 || lines > 512 || *endptr != '\0') 
    DEFUN (vtysh_terminal_length, 
    17621762 
    17631763  if (lines != 0) 
    17641764    { 
    1765       snprintf(default_pager, 10, "more -%i", lines); 
     1765      snprintf(default_pager, 12, "head -n %i", lines); 
    17661766      vtysh_pager_name = strdup (default_pager); 
    17671767    } 
    17681768 
Note: See TracBrowser for help on using the repository browser.