aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2020-02-10 10:24:40 -0500
committerJoseph Hunkeler <jhunkeler@gmail.com>2020-02-10 10:24:40 -0500
commit0c13cc71617550940638a143b626c426769c803f (patch)
treedee561d2dd6ce8a68cefe16c8285ff8a8b8b227a /src
parentcb14cfde8b8154c5aa7a795d0ea846620030dd79 (diff)
downloadspmc-0c13cc71617550940638a143b626c426769c803f.tar.gz
Match more possible mime types
Diffstat (limited to 'src')
-rw-r--r--src/mime.c2
1 files changed, 1 insertions, 1 deletions
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);