diff options
author | David Faure <faure@kde.org> | 2022-03-13 15:00:07 +0100 |
---|---|---|
committer | David Faure <faure@kde.org> | 2022-03-13 14:02:24 +0000 |
commit | 62baee5169438bdf86c5d022c72796177b878c57 (patch) | |
tree | afcb43871e4fe5505c23c2b2ab9efa322da5e115 | |
parent | cd06e616a32206adca1fce2b648e3ea9bbbe4f85 (diff) | |
download | shared-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.in | 1 | ||||
-rwxr-xr-x | tests/mime-detection/libldap-2.4.so.2 | bin | 0 -> 13568 bytes | |||
-rw-r--r-- | tests/mime-detection/list | 2 |
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 Binary files differnew file mode 100755 index 00000000..d8966a80 --- /dev/null +++ b/tests/mime-detection/libldap-2.4.so.2 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 |