*: nuke ^L (page feed)
Quagga sources have inherited a slew of Page Feed (^L, \xC) characters
from ancient history. Among other things, these break patchwork's
XML-RPC API because \xC is not a valid character in XML documents.
Nuke them from high orbit.
Patches can be adapted simply by:
sed -e 's%^L%%' -i filename.patch
(you can type page feeds in some environments with Ctrl-V Ctrl-L)
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
diff --git a/lib/vty.c b/lib/vty.c
index 9908b02..1141357 100644
--- a/lib/vty.c
+++ b/lib/vty.c
@@ -57,7 +57,7 @@
/* Extern host structure from command.c */
extern struct host host;
-
+
/* Vector which store each vty structure. */
static vector vtyvec;
@@ -89,7 +89,7 @@
/* Integrated configuration file path */
char integrate_default[] = SYSCONFDIR INTEGRATE_DEFAULT_CONFIG;
-
+
/* VTY standard output function. */
int
vty_out (struct vty *vty, const char *format, ...)
@@ -455,7 +455,7 @@
return ret;
}
-
+
static const char telnet_backward_char = 0x08;
static const char telnet_space_char = ' ';
@@ -2494,7 +2494,7 @@
}
return vty->config;
}
-
+
/* Master of the threads. */
static struct thread_master *master;
@@ -2551,7 +2551,7 @@
break;
}
}
-
+
DEFUN (config_who,
config_who_cmd,
"who",