1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-26 01:37:20 +00:00

Decode hardlink source path before linking

This commit is contained in:
Jonas Borgström 2011-07-01 21:54:39 +02:00
parent 3eb211b442
commit 650bd69da5

View file

@ -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)