summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
Diffstat (limited to 'xlators')
-rw-r--r--xlators/features/marker/utils/syncdaemon/resource.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/xlators/features/marker/utils/syncdaemon/resource.py b/xlators/features/marker/utils/syncdaemon/resource.py
index ce855fb715d..c937f80cf8d 100644
--- a/xlators/features/marker/utils/syncdaemon/resource.py
+++ b/xlators/features/marker/utils/syncdaemon/resource.py
@@ -37,7 +37,10 @@ def desugar(ustr):
else:
return "gluster://#{str}"
else:
- return "file://" + os.path.abspath(ustr)
+ ap = os.path.abspath(ustr)
+ if ap.startswith('//'):
+ ap = ap[1:]
+ return "file://" + ap
def parse_url(ustr):
m = UrlRX.match(ustr)