INN commit: trunk/scripts (inncheck.in)

INN Commit rra at isc.org
Tue Aug 2 17:37:34 UTC 2011


    Date: Tuesday, August 2, 2011 @ 10:37:34
  Author: iulius
Revision: 9300

check for wrong leading characters in passwd (for instance a commented line with //)

Thanks to Florian Schlichting for the patch.

Modified:
  trunk/scripts/inncheck.in

-------------+
 inncheck.in |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: inncheck.in
===================================================================
--- inncheck.in	2011-08-02 17:33:00 UTC (rev 9299)
+++ inncheck.in	2011-08-02 17:37:34 UTC (rev 9300)
@@ -899,7 +899,7 @@
     input: while ( <$IN> ) {
 	next input if spacious($file, ++$line);
 
-	unless ( ($name, $pass) = /[\w\-\.]+:([^:]*):([^:]*)(:authinfo)?$/ ) {
+        unless ( ($name, $pass) = /^[\w\-\.]+:([^:]*):([^:]*)(:authinfo)?$/ ) {
 	    eprint "$file:$line: malformed line.\n";
 	    next input;
 	}




More information about the inn-committers mailing list