mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-26 09:47:58 +00:00
Decode hardlink source path before linking
This commit is contained in:
parent
3eb211b442
commit
650bd69da5
1 changed files with 1 additions and 1 deletions
|
@ -152,7 +152,7 @@ def extract_item(self, item, dest=None):
|
||||||
os.makedirs(os.path.dirname(path))
|
os.makedirs(os.path.dirname(path))
|
||||||
# Hard link?
|
# Hard link?
|
||||||
if 'source' in item:
|
if 'source' in item:
|
||||||
source = os.path.join(dest, item['source'])
|
source = os.path.join(dest, item['source'].decode('utf-8'))
|
||||||
if os.path.exists(path):
|
if os.path.exists(path):
|
||||||
os.unlink(path)
|
os.unlink(path)
|
||||||
os.link(source, path)
|
os.link(source, path)
|
||||||
|
|
Loading…
Reference in a new issue