Skip to content

Fix fallback after multiple matching globs.

If the result from magic sniffing doesn't correspond to any of the matching globs (even via inheritance), and there were matching globs, then don't return the result from magic sniffing. This is too unreliable, and contradicts the fact that if there was just one glob, the glob would win (not the magic). So in that case, fallback to one of the glob matches.

Context: shared-mime-info#138 (closed)

Merge request reports