Skip to content

Commit

Permalink
tests: fix preparing multi-part disk volume
Browse files Browse the repository at this point in the history
Storing encrypted filename into f_name shadowed unencrypted source file
name.
  • Loading branch information
marmarek committed Jan 5, 2021
1 parent 9360865 commit af13c19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qubesadmin/tests/backup/backupcompatibility.py
Original file line number Diff line number Diff line change
Expand Up @@ -1203,9 +1203,9 @@ def handle_v4_file(self, f_name, subdir, stream, compressed="gzip"):
part):
continue
part_with_dir = os.path.join(subdir, part)
f_name = self.scrypt_encrypt(part_with_dir,
f_name_enc = self.scrypt_encrypt(part_with_dir,
basedir=self.fullpath('stage1'))
self.append_backup_stream(f_name, stream,
self.append_backup_stream(f_name_enc, stream,
basedir=self.fullpath("stage1"))

def create_v3_backup(self, encrypted=True, compressed=True):
Expand Down

0 comments on commit af13c19

Please sign in to comment.