1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-02-12 17:35:44 +00:00

Added missing path prefix strip for hard links

This commit is contained in:
Jonas Borgström 2011-06-23 22:41:06 +02:00
parent af95b7c996
commit 9e11ae567d

View file

@ -259,7 +259,7 @@ def process_file(self, path, st, cache):
source = self.hard_links.get((st.st_ino, st.st_dev)) source = self.hard_links.get((st.st_ino, st.st_dev))
if (st.st_ino, st.st_dev) in self.hard_links: if (st.st_ino, st.st_dev) in self.hard_links:
item = self.stat_attrs(st, path) item = self.stat_attrs(st, path)
item.update({'path': path, 'source': source}) item.update({'path': safe_path, 'source': source})
self.add_item(item) self.add_item(item)
return return
else: else: