summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2013-04-21 23:16:56 +0200
committerBenny Baumann <BenBE@geshi.org>2013-04-21 23:16:56 +0200
commitadec6700f7b359f1b8a60d341fb9f0170de7b3bf (patch)
tree70eb9cace08d1a1c443e61003b33a56fe651b92c
parent55a75d23ce0bb2d63ce05f22725f637d2ed35d62 (diff)
parenta3d0b8aa25e24616abfd35e686348b691064f9c7 (diff)
downloadcacert-devel-adec6700f7b359f1b8a60d341fb9f0170de7b3bf.tar.gz
cacert-devel-adec6700f7b359f1b8a60d341fb9f0170de7b3bf.tar.xz
cacert-devel-adec6700f7b359f1b8a60d341fb9f0170de7b3bf.zip
Merge branch 'bug-1159' into release
-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;
}