mirror of
				https://github.com/simon987/sist2.git
				synced 2025-11-04 01:36:51 +00:00 
			
		
		
		
	Remove arc_reset() function because seek() inside archive doesn't work
This commit is contained in:
		
							parent
							
								
									c4fbae123e
								
							
						
					
					
						commit
						ab199b0c0c
					
				@ -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) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user