mirror of
https://github.com/sist2app/sist2.git
synced 2026-03-28 19:11:36 +00:00
make --fast faster
This commit is contained in:
@@ -87,7 +87,7 @@ void parse(void *arg) {
|
|||||||
|
|
||||||
int bytes_read = 0;
|
int bytes_read = 0;
|
||||||
|
|
||||||
if (doc.mime == 0) {
|
if (doc.mime == 0 && !ScanCtx.fast) {
|
||||||
// Get mime type with libmagic
|
// Get mime type with libmagic
|
||||||
bytes_read = job->vfile.read(&job->vfile, buf, PARSE_BUF_SIZE);
|
bytes_read = job->vfile.read(&job->vfile, buf, PARSE_BUF_SIZE);
|
||||||
if (bytes_read == -1) {
|
if (bytes_read == -1) {
|
||||||
|
|||||||
Reference in New Issue
Block a user