From a9caf2235e855003e55a370bc20670250dfa3472 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marta=20Marczykowska-G=C3=B3recka?= Date: Tue, 11 Jul 2017 21:39:01 +0200 Subject: [PATCH] minor amends to clock synchronization renamed date_out variable to untrusted_date_out --- qubes-rpc/qubes-sync-clock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qubes-rpc/qubes-sync-clock b/qubes-rpc/qubes-sync-clock index 5e2140b..d23a6b7 100755 --- a/qubes-rpc/qubes-sync-clock +++ b/qubes-rpc/qubes-sync-clock @@ -25,12 +25,12 @@ import subprocess def main(): stdin = sys.stdin.read(25) - date_out = stdin.strip() + untrusted_date_out = stdin.strip() - if not re.match(r'^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\+00:?00$', date_out): + if not re.match(r'^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\+00:?00$', untrusted_date_out): sys.stderr.write('Invalid date received, aborting!') sys.exit(1) - subprocess.check_call(['date', '-u', '-Iseconds', '-s', date_out], + subprocess.check_call(['date', '-u', '-Iseconds', '-s', untrusted_date_out], stdout=subprocess.DEVNULL) if __name__ == '__main__':