summaryrefslogtreecommitdiffstats
path: root/web/attachments/160369-check_ntp-fqdn.patch
diff options
context:
space:
mode:
Diffstat (limited to 'web/attachments/160369-check_ntp-fqdn.patch')
-rw-r--r--web/attachments/160369-check_ntp-fqdn.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/web/attachments/160369-check_ntp-fqdn.patch b/web/attachments/160369-check_ntp-fqdn.patch
new file mode 100644
index 0000000..b20a702
--- /dev/null
+++ b/web/attachments/160369-check_ntp-fqdn.patch
@@ -0,0 +1,11 @@
1--- check_ntp.pl.orig 2005-12-19 13:34:41.000000000 +0100
2+++ check_ntp.pl 2005-12-19 13:43:49.000000000 +0100
3@@ -112,7 +112,7 @@
4 }
5
6 $opt_H = shift unless ($opt_H);
7-my $host = $1 if ($opt_H && $opt_H =~ m/^([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+|[a-zA-Z][-a-zA-Z0-9]+(\.[a-zA-Z][-a-zA-Z0-9]+)*)$/);
8+my $host = $1 if ($opt_H && $opt_H =~ m/^([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+|[a-zA-Z][-a-zA-Z0-9]+([a-zA-Z][-a-zA-Z0-9\.]+)*)$/);
9 unless ($host) {
10 print "No target host specified\n";
11 print_usage();