Преглед на файлове

borg mount: fix hardlink processing, fixes #3388

when the result list after stripping was empty,
os.path.join(*emptylist) fails as it want 1+ args.
Thomas Waldmann преди 7 години
родител
ревизия
dc8de36109
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/borg/fuse.py

+ 1 - 1
src/borg/fuse.py

@@ -398,7 +398,7 @@ class FuseOperations(llfuse.Operations):
             return name + version_enc + ext
 
         if 'source' in item and hardlinkable(item.mode):
-            source = os.path.join(*item.source.split(os.sep)[stripped_components:])
+            source = os.sep.join(item.source.split(os.sep)[stripped_components:])
             chunks, link_target = hardlink_masters.get(item.source, (None, source))
             if link_target:
                 # Hard link was extracted previously, just link