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.

(cherry picked from commit dc8de36109)
This commit is contained in:
Thomas Waldmann 2017-11-27 04:10:17 +01:00
parent 4fcb413802
commit 5cf48eeb16
1 changed files with 1 additions and 1 deletions

View File

@ -362,7 +362,7 @@ class FuseBackend(object):
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