From 8fbf3fd2a6337846795fb41a3a9452e513746648 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marta=20Marczykowska-G=C3=B3recka?= Date: Wed, 27 Mar 2019 18:31:26 +0100 Subject: [PATCH] Fixed minor error in Qubes Backup Possibly due to changes in how services work, the run_service_for_stdio was returning path with trailing whitespace. fixes QubesOS/qubes-issues#4921 --- qubesmanager/utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qubesmanager/utils.py b/qubesmanager/utils.py index a0deafa..a6a1351 100644 --- a/qubesmanager/utils.py +++ b/qubesmanager/utils.py @@ -163,6 +163,8 @@ def get_path_from_vm(vm, service_name): return None stdout, _stderr = vm.run_service_for_stdio(service_name) + stdout = stdout.strip() + untrusted_path = stdout.decode(encoding='ascii')[:path_max_len] if not untrusted_path: