[prev in list] [next in list] [prev in thread] [next in thread]
List: quagga-dev
Subject: [quagga-dev 535] Very minor patch...
From: Christian Hammers <ch () debian ! org>
Date: 2003-12-15 18:39:33
[Download RAW message or body]
Hi
I did the following to my Debian packages to make quagga comply with our
standards:
http://www.debian.org/doc/debian-policy/ch-customized-programs.html#s11.4
It's just a few lines althoug maybe Debian specific so I don't know if
you want to include it into upstream..
bye,
-christian-
["vtysh__vtysh.c__PAGER.diff" (text/plain)]
--- vtysh.c.orig 2003-12-15 19:15:43.000000000 +0100
+++ vtysh.c 2003-12-15 19:27:41.000000000 +0100
@@ -351,8 +351,14 @@
vtysh_pager_name = getenv ("VTYSH_PAGER");
if (! vtysh_pager_name)
vtysh_pager_name = getenv ("PAGER");
- if (! vtysh_pager_name)
- vtysh_pager_name = "more";
+ if (! vtysh_pager_name) {
+ struct stat pager_stat;
+ if (stat("/usr/bin/pager", &pager_stat) == 0) {
+ vtysh_pager_name = "/usr/bin/pager";
+ } else {
+ vtysh_pager_name = "more";
+ }
+ }
}
/* Command execution over the vty interface. */
_______________________________________________
Quagga-dev mailing list
Quagga-dev@lists.quagga.net
http://lists.quagga.net/mailman/listinfo/quagga-dev
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic