Преглед на файлове

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
Marek Marczykowski-Górecki преди 8 години
родител
ревизия
0e062ff31e
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      qubes-rpc/qubes.SetDateTime

+ 1 - 1
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