INN commit: branches/2.5/scripts (inncheck.in)

INN Commit rra at isc.org
Sat Aug 6 20:44:19 UTC 2011


    Date: Saturday, August 6, 2011 @ 13:44:19
  Author: iulius
Revision: 9322

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

Thanks to Florian Schlichting for the patch.

Modified:
  branches/2.5/scripts/inncheck.in

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

Modified: inncheck.in
===================================================================
--- inncheck.in	2011-08-06 20:43:45 UTC (rev 9321)
+++ inncheck.in	2011-08-06 20:44:19 UTC (rev 9322)
@@ -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