[mrtg-developers] FW: cfgmaker 2.9.3 hicup

Curtis Doty Curtis at GreenKey.net
Fri Oct 27 05:39:53 MEST 2000


Forwarding on to the group while Tobi is out...

-----Original Message-----
From: Curtis Doty [mailto:Curtis at GreenKey.net]
Sent: Thu, 26 October 2000 8:31 PM
To: Tobias Oetiker
Cc: afarrior at king.vc.cc.tx.us
Subject: cfgmaker 2.9.3 hicup


Aiii! This innocent looking trailing whitespace in cfgmaker gobbled up all
the ram on my linux box and produced some whacky results.

Normally I send you a `diff -ub yada yada` but here's a case for just
`diff -u`.

--- /home/curtis/src/mrtg-2.9.3/bin/cfgmaker    Thu Oct 26 20:14:58 2000
+++ /usr/local/mrtg-2/bin/cfgmaker      Thu Oct 26 20:18:34 2000
@@ -334,10 +334,10 @@
 ${c}   <TR><TD>Description:</TD><TD>$$i{RDescr} $$i{ifAlias}
$$i{CiscolocIfDescr}</TD></TR>
 ${c}   <TR><TD>ifType:</TD>     <TD>$iftype ($$i{ifType})</TD></TR>
 ${c}   <TR><TD>ifName:</TD>     <TD>$$i{RName}</TD></TR>
-ECHO
+ECHO
              $conf .= <<ECHO if defined $portname;
 ${c}   <TR><TD>Port Name:</TD>  <TD>$portname</TD></TR>
-ECHO
+ECHO
              $conf .= <<ECHO;
 ${c}   <TR><TD>Max Speed:</TD>  <TD>$speed_str</TD></TR>
 ECHO

Look closely at the spaces behind the old ECHO lines. `s/\s$//`!

../C


--
Unsubscribe mailto:mrtg-developers-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:mrtg-developers-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/mrtg-developers



More information about the mrtg-developers mailing list