소스 검색

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
Marta Marczykowska-Górecka 5 년 전
부모
커밋
8fbf3fd2a6
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      qubesmanager/utils.py

+ 2 - 0
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: