shared-mime-info/SOURCES/0002-Fix-detection-of-executable-files.patch

42 lines
1.9 KiB
Diff

diff -up shared-mime-info-1.9/freedesktop.org.xml.in.2 shared-mime-info-1.9/freedesktop.org.xml.in
--- shared-mime-info-1.9/freedesktop.org.xml.in.2 2023-12-08 10:47:31.309147409 +0100
+++ shared-mime-info-1.9/freedesktop.org.xml.in 2023-12-08 10:47:34.293185260 +0100
@@ -1919,14 +1919,10 @@ command to generate the output files.
<generic-icon name="application-x-executable"/>
<magic priority="40">
<match type="string" value="\177ELF" offset="0">
- <match type="byte" value="1" offset="5">
- <match type="little16" value="2" offset="16"/>
- </match>
+ <match type="byte" value="1" offset="5"/>
</match>
<match type="string" value="\177ELF" offset="0">
- <match type="byte" value="2" offset="5">
- <match type="big16" value="2" offset="16"/>
- </match>
+ <match type="byte" value="2" offset="5"/>
</match>
<match type="string" value="MZ" offset="0"/>
<match type="little16" value="0x521c" offset="0"/>
@@ -3459,20 +3455,9 @@ command to generate the output files.
<mime-type type="application/x-sharedlib">
<_comment>shared library</_comment>
<magic priority="50">
- <match type="string" value="\177ELF" offset="0">
- <match type="byte" value="1" offset="5">
- <match type="little16" value="3" offset="16"/>
- </match>
- </match>
- <match type="string" value="\177ELF" offset="0">
- <match type="byte" value="2" offset="5">
- <match type="big16" value="3" offset="16"/>
- </match>
- </match>
<match type="little16" value="0603" offset="0">
<match type="little16" mask="030000" value="020000" offset="22"/>
</match>
- <match type="string" mask="0xffffffff000000000000000000000000ff" value="\177ELF \003" offset="0"/>
</magic>
<glob pattern="*.so"/>
</mime-type>