Date: Fri, 2 Jul 2010 09:52:42 -0500 From: Dan Nelson <dnelson@allantgroup.com> To: Tim Daneliuk <tundra@tundraware.com> Cc: FreeBSD Mailing List <freebsd-questions@freebsd.org> Subject: Re: 'file' Command Giving False Positives Message-ID: <20100702145242.GF50409@dan.emsphone.com> In-Reply-To: <4C2DF07F.1020509@tundraware.com> References: <4C2DF07F.1020509@tundraware.com>
next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Jul 02), Tim Daneliuk said: > I have a data file with the content: > > LZasdadqjwjqwjqwjeqwe > > 'file' (incorrectly) reports this as an MS-DOS executable. I dunno; if I create a file "a.exe" on my XP system with those contents, I can run it from a cmd prompt, and it doesn't print any errors, so technically it is an MS-DOS executable :) > Does anyone happen to know the proper changes to 'magic' that would > fix this? Easiest fix would be to remove line 377 from /usr/src/contrib/file/Magdir/msdos and rebuild & reinstall /usr/src/lib/libmagic/ . -- Dan Nelson dnelson@allantgroup.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100702145242.GF50409>