mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-26 01:37:20 +00:00
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.
This commit is contained in:
parent
23a1d62b25
commit
dc8de36109
1 changed files with 1 additions and 1 deletions
|
@ -398,7 +398,7 @@ def make_versioned_name(name, version, add_dir=False):
|
||||||
return name + version_enc + ext
|
return name + version_enc + ext
|
||||||
|
|
||||||
if 'source' in item and hardlinkable(item.mode):
|
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))
|
chunks, link_target = hardlink_masters.get(item.source, (None, source))
|
||||||
if link_target:
|
if link_target:
|
||||||
# Hard link was extracted previously, just link
|
# Hard link was extracted previously, just link
|
||||||
|
|
Loading…
Reference in a new issue