mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-24 00:37:56 +00:00
Make sure the path hashed by the files cache is absolute
This commit is contained in:
parent
6fb7ac44b6
commit
c3305291a2
1 changed files with 1 additions and 1 deletions
|
@ -388,7 +388,7 @@ def process_file(self, path, st, cache):
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
self.hard_links[st.st_ino, st.st_dev] = safe_path
|
self.hard_links[st.st_ino, st.st_dev] = safe_path
|
||||||
path_hash = self.key.id_hash(path.encode('utf-8', 'surrogateescape'))
|
path_hash = self.key.id_hash(os.path.join(self.cwd, path).encode('utf-8', 'surrogateescape'))
|
||||||
ids = cache.file_known_and_unchanged(path_hash, st)
|
ids = cache.file_known_and_unchanged(path_hash, st)
|
||||||
chunks = None
|
chunks = None
|
||||||
if ids is not None:
|
if ids is not None:
|
||||||
|
|
Loading…
Reference in a new issue