Well we need a way to find out that /bin/ls is an executable, and there's no extension, so working magic would be useful ;)
However I don't know anything about the ELF file format, so I don't know what the problem actually is (and whether it offers reliable magic).
Admittedly the magic for x-sharedlib is the one that's much less useful, shared libs are typically called *.so or *.so.[0-9\.]* :-)
But I wouldn't dare just removing all magic from x-sharedlib... unless someone can prove that the ELF file format makes no actual difference between shared libs and executables?
Well we need a way to find out that /bin/ls is an executable, and there's no extension, so working magic would be useful ;)
However I don't know anything about the ELF file format, so I don't know what the problem actually is (and whether it offers reliable magic).
Admittedly the magic for x-sharedlib is the one that's much less useful, shared libs are typically called *.so or *.so.[0-9\.]* :-)
But I wouldn't dare just removing all magic from x-sharedlib... unless someone can prove that the ELF file format makes no actual difference between shared libs and executables?