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
This commit is contained in:
Marta Marczykowska-Górecka 2019-03-27 18:31:26 +01:00
والد 9d4eed63b5
کامیت 8fbf3fd2a6
هیچ کلید شناخته شده ای برای این امضا در پایگاه داده ها یافت نشد
شناسه کلید GPG: 9A752C30B26FD04B

مشاهده پرونده

@ -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: