Mail Archives: djgpp/2001/02/18/05:27:33
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 -