"it might be possible to execute commands on the signing server"
This commit is contained in:
Wytze van der Raay 2013-06-20 10:14:33 +00:00
parent e870b86839
commit db6ea0aafd

View file

@ -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;
}