summaryrefslogtreecommitdiff
path: root/CommModule
diff options
context:
space:
mode:
authorMichael Tänzer <neo@nhng.de>2013-04-09 23:58:30 +0200
committerMichael Tänzer <neo@nhng.de>2013-04-09 23:58:30 +0200
commit2edf1f6d022c82c1ac1b8d4ab73cad01b058d26b (patch)
treecf50806eebb6eb2ffb12e37413bcc5122be69627 /CommModule
parent8405c2520d9f746ee0bf7dec770119ee3d489e95 (diff)
parenta3d0b8aa25e24616abfd35e686348b691064f9c7 (diff)
downloadcacert-devel-2edf1f6d022c82c1ac1b8d4ab73cad01b058d26b.tar.gz
cacert-devel-2edf1f6d022c82c1ac1b8d4ab73cad01b058d26b.tar.xz
cacert-devel-2edf1f6d022c82c1ac1b8d4ab73cad01b058d26b.zip
Merge branch 'bug-1159' into testserver-stable
Diffstat (limited to 'CommModule')
-rwxr-xr-xCommModule/server.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/CommModule/server.pl b/CommModule/server.pl
index c70bc9a..6084042 100755
--- a/CommModule/server.pl
+++ b/CommModule/server.pl
@@ -955,10 +955,10 @@ sub analyze($)
if($bytes[1] == 0) # NUL Request
{
SysLog "NUL Request detected.\n";
- if($fields[1])
+ if($fields[1] =~ /^\d+\.\d+$/)
{
open OUT,">timesync.sh";
- print OUT "date -u $fields[1]\n";
+ print OUT "date -u '$fields[1]'\n";
print OUT "hwclock --systohc\n";
close OUT;
}