summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Faure <faure@kde.org>2022-03-13 15:00:07 +0100
committerDavid Faure <faure@kde.org>2022-03-13 14:02:24 +0000
commit62baee5169438bdf86c5d022c72796177b878c57 (patch)
treeafcb43871e4fe5505c23c2b2ab9efa322da5e115
parentcd06e616a32206adca1fce2b648e3ea9bbbe4f85 (diff)
downloadshared-mime-info-62baee5169438bdf86c5d022c72796177b878c57.tar.gz
Match shared libraries with version suffix
Make sure that libfoo.so.1.2.3 is recognized as shared library
-rw-r--r--data/freedesktop.org.xml.in1
-rwxr-xr-xtests/mime-detection/libldap-2.4.so.2bin0 -> 13568 bytes
-rw-r--r--tests/mime-detection/list2
3 files changed, 3 insertions, 0 deletions
diff --git a/data/freedesktop.org.xml.in b/data/freedesktop.org.xml.in
index ae05d58a..2324f0ea 100644
--- a/data/freedesktop.org.xml.in
+++ b/data/freedesktop.org.xml.in
@@ -3731,6 +3731,7 @@ command to generate the output files.
</match>
</magic>
<glob pattern="*.so"/>
+ <glob weight="60" pattern="*.so.[0-9]*"/>
</mime-type>
<mime-type type="application/x-shellscript">
<comment>shell script</comment>
diff --git a/tests/mime-detection/libldap-2.4.so.2 b/tests/mime-detection/libldap-2.4.so.2
new file mode 100755
index 00000000..d8966a80
--- /dev/null
+++ b/tests/mime-detection/libldap-2.4.so.2
Binary files differ
diff --git a/tests/mime-detection/list b/tests/mime-detection/list
index d2aed529..ec35b866 100644
--- a/tests/mime-detection/list
+++ b/tests/mime-detection/list
@@ -781,6 +781,8 @@ subshapes.swf application/vnd.adobe.flash.movie
pci.mod application/x-object x
# PIE executable https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/11
ls application/x-executable x
+# ELF shared library
+libldap-2.4.so.2 application/x-sharedlib oxo
boardingpass.pkpass application/vnd.apple.pkpass
hello.xdgapp application/vnd.flatpak