12306: Resolve relative paths early, to avoid realpath() later.
authorTom Clegg <tclegg@veritasgenetics.com>
Mon, 6 Nov 2017 21:44:07 +0000 (16:44 -0500)
committerTom Clegg <tclegg@veritasgenetics.com>
Mon, 6 Nov 2017 21:44:07 +0000 (16:44 -0500)
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tclegg@veritasgenetics.com>

services/fuse/arvados_fuse/unmount.py

index 17ced4b4d08d4916d409495afb6e9f9aacc065d5..06a02e6a765840ae29cc7baf31319d45c7b8489e 100644 (file)
@@ -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 == '':