Skip to content
Snippets Groups Projects
Commit bab3e0e7 authored by Chris Lamb's avatar Chris Lamb :eyes:
Browse files

Ensure we check FALLBACK_FILE_EXTENSION_SUFFIX, otherwise we run pgpdump...

Ensure we check FALLBACK_FILE_EXTENSION_SUFFIX, otherwise we run pgpdump against all files that are recognised by file(1) as "data".
parent c6a438a0
No related branches found
No related tags found
No related merge requests found
......@@ -91,6 +91,11 @@ class PgpFile(File):
@classmethod
def fallback_recognizes(cls, file):
# Ensure we check FALLBACK_FILE_EXTENSION_SUFFIX, otherwise we run
# pgpdump against all files that are recognised by file(1) as "data"
if not super().fallback_recognizes(file):
return False
if file.magic_file_type == "data":
try:
output = our_check_output(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment