[Nagiosplug-checkins] nagiosplug/plugins-scripts utils.pm.in, 1.11, 1.12

Ton Voon tonvoon at users.sourceforge.net
Tue Dec 12 09:56:03 CET 2006


Update of /cvsroot/nagiosplug/nagiosplug/plugins-scripts
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv9270

Modified Files:
	utils.pm.in 
Log Message:
Allow single characters in fqdn (Dave Alden)


Index: utils.pm.in
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins-scripts/utils.pm.in,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- utils.pm.in	27 Oct 2006 15:37:31 -0000	1.11
+++ utils.pm.in	12 Dec 2006 08:56:01 -0000	1.12
@@ -60,7 +60,7 @@
 		} else {
 			return 0;
 		}
-	} elsif ($host1 =~ m/^[a-zA-Z0-9][-a-zA-Z0-9]+(\.[a-zA-Z0-9][-a-zA-Z0-9]+)*\.?$/) {
+	} elsif ($host1 =~ m/^[a-zA-Z0-9][-a-zA-Z0-9]*(\.[a-zA-Z0-9][-a-zA-Z0-9]*)*\.?$/) {
 		return 1;
 	} else {
 		return 0;





More information about the Commits mailing list