From a665699823a2099a451e1c9c1505ef1cbf29c914 Mon Sep 17 00:00:00 2001 From: Antoine Brodin Date: Sun, 20 May 2018 22:07:44 +0000 Subject: [PATCH] Revert last change to file/magic/Magdir/elf, it misidentifies most shared libraries installed from ports as pie executables instead of shared libraries, and consequently breaks ports. --- contrib/file/magic/Magdir/elf | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/contrib/file/magic/Magdir/elf b/contrib/file/magic/Magdir/elf index 7fd5de1c1fff..2198fc2c58ae 100644 --- a/contrib/file/magic/Magdir/elf +++ b/contrib/file/magic/Magdir/elf @@ -48,9 +48,8 @@ !:mime application/x-object >16 leshort 2 executable, !:mime application/x-executable ->16 leshort 3 ${x?pie executable:shared object} - -!:mime application/x-${x?pie-executable:sharedlib} +>16 leshort 3 shared object, +!:mime application/x-sharedlib >16 leshort 4 core file !:mime application/x-coredump # Core file detection is not reliable.