Here's the problem:
[ben@kepler tmp]# file -i presentation.ppt presentation.ppt: application/msword
I see lots of references to this problem, (EG: IMP, PHP bug, etc) all of which conclude, in various forms, "the problem is in your /usr/share/magic.mime, go away". But nowhere (that I've been able to find) is there actually a solution - and even the magic.mime file from the latest tar (downloaded from astron.com) didn't fix it, either. The magic file in the apache directory seems to come up with the answer of: no answer. When you access a ppt in apache, it comes back with a generic response rather than "application/powerpoint"
Any ideas?
-Ben
On 3/3/06, Benjamin Smith lists@benjamindsmith.com wrote:
Here's the problem:
[ben@kepler tmp]# file -i presentation.ppt presentation.ppt: application/msword
Excerpt from /usr/share/magic.mime:
--- snip --- # msword: file(1) magic for MS Word files # # Contributor claims: # Reversed-engineered MS Word magic numbers #
0 string \376\067\0\043 application/msword 0 string \320\317\021\340\241\261 application/msword 0 string \333\245-\0\0\0 application/msword --- snip ---
The middle one of those matches the first six bytes of a powerpoint file. Whether it also might match the first six bytes of some msword documents, I don't know.
On Friday 03 March 2006 16:33, Bart Schaefer wrote:
Here's the problem:
[ben@kepler tmp]# file -i presentation.ppt presentation.ppt: application/msword
Excerpt from /usr/share/magic.mime:
-- SNIP --
The middle one of those matches the first six bytes of a powerpoint file. Whether it also might match the first six bytes of some msword documents, I don't know.
It seems to match *any* document type. I've gotten in touch with the developer of the Canadian who maintains the "file" command (it's Christos) and he's asked for the first few thousand bytes of the file, which I've sent.
Looks like the resolution of this sits outside the CentOS mailing list.
-Ben