From 5b5edc5af06a0d4ff1e62a3ec0ef590b642414c5 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 20 Nov 2018 11:31:22 +0000 Subject: [PATCH] fishdescriptor: When looking for run_dir, look in target root 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 --- fishdescriptor/py/fishdescriptor/fish.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fishdescriptor/py/fishdescriptor/fish.py b/fishdescriptor/py/fishdescriptor/fish.py index 05f89e6..dcb7c32 100644 --- a/fishdescriptor/py/fishdescriptor/fish.py +++ b/fishdescriptor/py/fishdescriptor/fish.py @@ -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: -- 2.30.2