Commit 2c9fbc13 authored by Chris Lamb's avatar Chris Lamb 💬

Correct the matching of R .rds files by also detecting newer versions of this file format.

parent f06c44f4
Pipeline #82645 passed with stage
in 20 minutes and 20 seconds
......@@ -30,7 +30,10 @@ import logging
import binascii
HEADER = binascii.a2b_hex("580a000000020003")
RDS_HEADERS = {
binascii.a2b_hex("580a000000020003"),
binascii.a2b_hex("580a000000030003"),
}
DUMP_RDB = rb"""
hideOutput = lazyLoad(commandArgs(TRUE));
......@@ -128,7 +131,7 @@ class RdsFile(File):
or file.container
and check_rds_extension(file.container.source)
):
return file.file_header.startswith(HEADER)
return file.file_header[:8] in RDS_HEADERS
return False
def compare_details(self, other, source=None):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment