Remove arc_reset() function because seek() inside archive doesn't work

This commit is contained in:
simon987 2020-05-24 14:18:31 -04:00
parent c4fbae123e
commit ab199b0c0c

View File

@ -78,6 +78,12 @@ void parse(void *arg) {
if (doc.mime == 0 && !ScanCtx.fast) { if (doc.mime == 0 && !ScanCtx.fast) {
// Get mime type with libmagic // Get mime type with libmagic
if (!job->vfile.is_fs_file) {
LOG_WARNING(job->filepath,
"Guessing mime type with libmagic inside archive files is not currently supported");
return;
}
bytes_read = job->vfile.read(&job->vfile, buf, MAGIC_BUF_SIZE); bytes_read = job->vfile.read(&job->vfile, buf, MAGIC_BUF_SIZE);
if (bytes_read < 0) { if (bytes_read < 0) {