diff --git a/dom0/qvm-tools/qvm-sync-clock b/dom0/qvm-tools/qvm-sync-clock index 84f54ba8..c162aa89 100755 --- a/dom0/qvm-tools/qvm-sync-clock +++ b/dom0/qvm-tools/qvm-sync-clock @@ -73,6 +73,7 @@ def main(): p = clock_vm.run('user:date -u', verbose=verbose, passio_popen=True) date_out = p.stdout.read(100) + date_out = date_out.strip() if not re.match(r'^[A-Za-z]* [A-Za-z]* [ 0-9][0-9] [0-9][0-9]:[0-9][0-9]:[0-9][0-9] [A-Z]* [0-9][0-9][0-9][0-9]$', date_out): print >> sys.stderr, 'Invalid date output, aborting!' sys.exit(1)