delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/02/17/10:04:17

From: Martin Str|mberg <ams AT ludd DOT luth DOT se>
Message-Id: <200102171501.QAA26211@mother.ludd.luth.se>
Subject: Re: file(1)
To: c DOT zeelenberg AT hccnet DOT nl
Date: Sat, 17 Feb 2001 16:00:59 +0100 (MET)
Cc: djgpp AT delorie DOT com
X-Mailer: ELM [version 2.5 PL2]
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

Great!

However your ported version have some problems:

1. Try specify an alternative magic file with -m:
file -m t:/magic /djgpp/bin/ranlib.exe
file.exe: couldn't find any magic files!

I worked around this by using "/dev/t/" instead of "t:/".

2. It would be neat if you incorporated this:
# v >2, uses DPMI & small(2k) stub (Robert vd Boon, rjvdboon AT europe DOT com)
0x200	string		go32stub	DOS-executable compiled w/DJGPP
>0x20c	string		>0		(stub v%.4s)
>>0x8b2	string		djp		[compressed w/%s
>>>&1	string		>\0		%.4s]
>>0x8ad	string		UPX		[compressed w/%s
>>>&1	string		>\0		%.4s]
>>0x1c	string		pmodedj		stubbed with %s

3. If you do 2, you'll find a bug. In the line 365 of file.c you need
to open the files in binary mode. I don't know what else (if anything)
will be messed up from this change..


Right,

						MartinS

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019