From 0e062ff31e0f46883c52f45bad2c0b74f3258403 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Thu, 7 Jan 2016 05:06:39 +0100 Subject: [PATCH] Fix time sync service It is expected to not output anything on stdout. Especially remote end may be already terminated, so writing there would result in EPIPE. Fixes QubesOS/qubes-issues#1592 --- qubes-rpc/qubes.SetDateTime | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qubes-rpc/qubes.SetDateTime b/qubes-rpc/qubes.SetDateTime index 6ecc9e6..a55e850 100644 --- a/qubes-rpc/qubes.SetDateTime +++ b/qubes-rpc/qubes.SetDateTime @@ -8,4 +8,4 @@ if [ $timediff -le 2 -a $timediff -ge -2 ]; then # don't bother exit 0 fi -date -u -s "$timestamp" +date -u -s "$timestamp" >/dev/null