From 0c13cc71617550940638a143b626c426769c803f Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Mon, 10 Feb 2020 10:24:40 -0500 Subject: Match more possible mime types --- src/mime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/mime.c b/src/mime.c index d5912d4..b71485d 100644 --- a/src/mime.c +++ b/src/mime.c @@ -134,7 +134,7 @@ int file_is_binexec(const char *filename) { Mime *type = file_mimetype(path); // file-5.38: changed mime name associated with executables // TODO: implement compatibility function to return the correct search pattern - if (fnmatch("application/x-[sh|ex]*", type->type, FNM_PATHNAME) != FNM_NOMATCH && strcmp(type->charset, "binary") == 0) { + if (fnmatch("application/x-[pic|pie|ex|sh]*", type->type, FNM_PATHNAME) != FNM_NOMATCH && strcmp(type->charset, "binary") == 0) { result = 1; } free(path); -- cgit