mirror of
https://github.com/borgbackup/borg.git
synced 2026-04-04 16:46:51 -04:00
Merge pull request #4646 from ThomasWaldmann/fix-4614-1.1
SecurityManager.known(): check all files, fixes #4614
This commit is contained in:
commit
08c3a6bd96
1 changed files with 2 additions and 1 deletions
|
|
@ -73,7 +73,8 @@ class SecurityManager:
|
|||
shutil.rmtree(path)
|
||||
|
||||
def known(self):
|
||||
return os.path.exists(self.key_type_file)
|
||||
return all(os.path.exists(f)
|
||||
for f in (self.key_type_file, self.location_file, self.manifest_ts_file))
|
||||
|
||||
def key_matches(self, key):
|
||||
if not self.known():
|
||||
|
|
|
|||
Loading…
Reference in a new issue