From: Tom Clegg Date: Mon, 6 Nov 2017 21:44:07 +0000 (-0500) Subject: 12306: Resolve relative paths early, to avoid realpath() later. X-Git-Tag: 1.1.1~12^2~1 X-Git-Url: https://git.arvados.org/arvados.git/commitdiff_plain/aabf1ca0e99701550f9af785e9f1fee098b0020a 12306: Resolve relative paths early, to avoid realpath() later. Arvados-DCO-1.1-Signed-off-by: Tom Clegg --- diff --git a/services/fuse/arvados_fuse/unmount.py b/services/fuse/arvados_fuse/unmount.py index 17ced4b4d0..06a02e6a76 100644 --- a/services/fuse/arvados_fuse/unmount.py +++ b/services/fuse/arvados_fuse/unmount.py @@ -58,6 +58,8 @@ def unmount(path, subtype=None, timeout=10, recursive=False): fuse mount at all. Raises an exception if it cannot be unmounted. """ + path = os.path.abspath(path) + if subtype is None: mnttype = None elif subtype == '':