delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/02/18/05:27:33

Message-ID: <000001c09994$85f1cdc0$ba7cadc1@beta>
From: "Kees Zeelenberg" <c DOT zeelenberg AT hccnet DOT nl>
To: "Martin Str|mberg" <ams AT ludd DOT luth DOT se>
Cc: <djgpp AT delorie DOT com>
References: <200102171501 DOT QAA26211 AT mother DOT ludd DOT luth DOT se>
Subject: Re: file(1)
Date: Sun, 18 Feb 2001 10:00:54 +0100
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
Reply-To: djgpp AT delorie DOT com

I will fix 1 and 3; and send 2 to the maintainer of magic.

Kees

----- Oorspronkelijk bericht ----- 
Van: "Martin Str|mberg" <ams AT ludd DOT luth DOT se>
Aan: <c DOT zeelenberg AT hccnet DOT nl>
CC: <djgpp AT delorie DOT com>
Verzonden: zaterdag 17 februari 2001 16:00
Onderwerp: Re: file(1)


> 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