summaryrefslogtreecommitdiff
path: root/CommModule
diff options
context:
space:
mode:
authorMichael Tänzer <neo@nhng.de>2013-07-16 23:19:26 +0200
committerMichael Tänzer <neo@nhng.de>2013-07-16 23:19:26 +0200
commitaea694d929d09db48b008eda40fc2a77ea086e8d (patch)
tree97261963287386ebbfb51152d9002c58c17bd5b2 /CommModule
parent90dcf899dae9bff3dc9d7e7953e2841dadea178f (diff)
downloadcacert-aea694d929d09db48b008eda40fc2a77ea086e8d.tar.gz
cacert-aea694d929d09db48b008eda40fc2a77ea086e8d.tar.xz
cacert-aea694d929d09db48b008eda40fc2a77ea086e8d.zip
Source code taken from cacert-20130716.tar.bz2
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;
}