chiark / gitweb /
fishdescriptor: When looking for run_dir, look in target root
authorIan Jackson <ian.jackson@eu.citrix.com>
Tue, 20 Nov 2018 11:31:22 +0000 (11:31 +0000)
committerIan Jackson <ian.jackson@eu.citrix.com>
Tue, 20 Nov 2018 11:32:35 +0000 (11:32 +0000)
This is correct, since we are operating in our environment but we are
going to use the path in the target's root.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
fishdescriptor/py/fishdescriptor/fish.py

index 05f89e6..dcb7c32 100644 (file)
@@ -116,7 +116,7 @@ class Donor():
 
     def _sock_dir(d, target_euid, target_root):
         run_dir = '/run/user/%d' % target_euid
-        if d._exists(run_dir):
+        if d._exists(target_root + run_dir):
             return run_dir + '/fishdescriptor'
 
         try: