Rewrite hc_fopen to better handling file descriptor locking/unlocking functions, saving kernels binary from plain to gzip format

This commit is contained in:
Gabriele Gristina
2019-07-01 01:30:24 +02:00
parent 28a04d80b1
commit 5679ca3344
65 changed files with 237 additions and 201 deletions

View File

@@ -175,7 +175,7 @@ int module_hash_binary_parse (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE
HCFILE fp;
if (hc_fopen (&fp, hashes->hashfile, "rb") == false) return (PARSER_HASH_FILE);
if (hc_fopen (&fp, hashes->hashfile, "rb", HCFILE_FORMAT_PLAIN) == false) return (PARSER_HASH_FILE);
#define VC_HEADER_SIZE 512