From fda293f09a23063a1633f8fe6365397ce654b295 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Sun, 22 Feb 2015 14:36:11 +0100 Subject: [PATCH] Fix "backup: fix qubes.Restore service - do not send garbage as backup data" --- qubes-rpc/qubes.Restore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qubes-rpc/qubes.Restore b/qubes-rpc/qubes.Restore index 481f4b4..c02e5ad 100644 --- a/qubes-rpc/qubes.Restore +++ b/qubes-rpc/qubes.Restore @@ -11,7 +11,7 @@ if [ -f "$args" ] ; then else echo "Checking if arguments is matching a command" >&2 COMMAND=`echo $args | cut -d ' ' -f 1` - if which "$COMMAND" 2>/dev/null; then + if which "$COMMAND" >/dev/null; then tmpdir=`mktemp -d` mkfifo $tmpdir/backup-data echo "Redirecting $args to STDOUT" >&2