Skip to content

fix: derive tar mode from original filename when browsing encrypted backups#87

Open
Serph91P wants to merge 1 commit intodevelopfrom
fix/encrypted-browse-tar-mode
Open

fix: derive tar mode from original filename when browsing encrypted backups#87
Serph91P wants to merge 1 commit intodevelopfrom
fix/encrypted-browse-tar-mode

Conversation

@Serph91P
Copy link
Owner

The temp file for decrypted archives was always created with .tar.gz suffix, causing tarfile.open to fail with 'not a gzip file' when the backup was uncompressed (.tar.enc).

  • Derive temp suffix from original archive name (strip .enc)
  • Make _get_tar_mode use 'r:*' auto-detect as fallback
  • Fix encryption.py list_backup_contents: same suffix bug + use 'tar -tf' (auto-detect) instead of 'tar -tzf' (gzip-only)

…ackups

The temp file for decrypted archives was always created with .tar.gz
suffix, causing tarfile.open to fail with 'not a gzip file' when the
backup was uncompressed (.tar.enc).

- Derive temp suffix from original archive name (strip .enc)
- Make _get_tar_mode use 'r:*' auto-detect as fallback
- Fix encryption.py list_backup_contents: same suffix bug + use
  'tar -tf' (auto-detect) instead of 'tar -tzf' (gzip-only)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant