[File-cvs] CVS commit: file/src

Christos Zoulas christos at zoulas.com
Tue Oct 23 18:34:46 UTC 2018


Module Name:	file
Committed By:	christos
Date:		Tue Oct 23 18:34:46 UTC 2018

Modified Files:
	file/src: softmagic.c

Log Message:
If we encountered a match (an entry with description) even if we are not
printing (i.e. we are doing mime or something else), set the return value,
so that we stop searching. This avoids the issue where mime matched later
entries in the magic list, instead of matching nothing (entries with no
mime that would have matched earlier).


To generate a diff of this commit:
cvs rdiff -r1.272 -r1.273 file/src/softmagic.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



More information about the File-cvs mailing list