From: Martin Str|mberg 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 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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