Txt file considered as program?

Julian Field MailScanner at ecs.soton.ac.uk
Fri Jan 4 14:26:19 GMT 2008


This is because "file -i" uses a totally different file of "magic 
strings" to look for than the normal "file" command does without the "-i".
I would fix it by finding the string in your normal "magic" file that 
triggers the "COM executable" result and comment it out.
My line (RHEL 5) looks like this:
0       byte            0xe9            DOS executable (COM)
so you're looking for a line like that, in /usr/share/file/magic (though 
the location of your "magic" file may vary and will be documented in 
"man file" output.

Thiago Henrique wrote:
> No, if i change the command to file -i the file is identifed correctly:
>
> morpheus quarantine # file -i ./20080104/1A48799ACB.89983/msg-2327-60.txt
> ./20080104/1A48799ACB.89983/msg-2327-60.txt: text/plain; 
> charset=iso-8859-1
>
>
>
> On Jan 4, 2008 10:58 AM, Steve Freegard <steve.freegard at fsl.com 
> <mailto:steve.freegard at fsl.com>> wrote:
>
>     Thiago Henrique wrote:
>     > I have the same problem where. When i check the .txt file
>     generated by
>     > Outoolk in reply of some messages this return "DOS executable
>     (COM)".
>     >
>     > Example:
>     > morpheus quarantine # file ./20080104/1A48799ACB.89983/msg-
>     2327-60.txt
>     > ./20080104/1A48799ACB.89983/msg-2327-60.txt: DOS executable (COM)
>
>     If you change this to 'file -i <file>' does it produce the same
>     executable output?
>
>     Kind regards,
>     Steve.
>     --
>     MailScanner mailing list
>     mailscanner at lists.mailscanner.info
>     <mailto:mailscanner at lists.mailscanner.info>
>     http://lists.mailscanner.info/mailman/listinfo/mailscanner
>
>     Before posting, read http://wiki.mailscanner.info/posting
>
>     Support MailScanner development - buy the book off the website!
>
>

Jules

-- 
Julian Field MEng CITP CEng
www.MailScanner.info
Buy the MailScanner book at www.MailScanner.info/store

Need help customising MailScanner?
Contact me!
Need help fixing or optimising your systems?
Contact me!
Need help getting you started solving new requirements from your boss?
Contact me!

PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the MailScanner mailing list