* file command busted in V4.0x?
@ 1998-07-18 4:00 John Hascall
0 siblings, 0 replies; only message in thread
From: John Hascall @ 1998-07-18 4:00 UTC (permalink / raw)
Given the following in /etc/magic :
0 string ^GIF\\%...\\% GIF (%s) image
>6 short >0 (%d
>8 short >0 x %d)
Using the V4.0d file command always gives:
vincent% /tmp/file sarah-rachel-zelle.gif
sarah-rachel-zelle.gif: GIF (87a) image (0 x 0)
rather than the correct (here from V3.2d) result:
vincent% /tmp/file sarah-rachel-zelle.gif
sarah-rachel-zelle.gif: GIF (87a) image (359 x 426)
In fact, it appears that '%d' is picking up the
'operator value' (the 0 after the '>' in this case) because
making this change:
0 string ^GIF\\%...\\% GIF (%s) image
>6 short <1234 (%d
>8 short <2345 x %d)
gives:
vincent% file sarah-rachel-zelle.gif
sarah-rachel-zelle.gif: GIF (87a) image (1234 x 2345)
Is this a 'known problem'?
Is there a patch/fix/workaround (other than using
a copy of 'file' from a V3.2d system)?
Thanks,
John
--
John Hascall, Software Engr. Shut up, be happy. The conveniences you
ISU Computation Center demanded are now mandatory. -Jello Biafra
mailto:john@iastate.edu
http://www.cc.iastate.edu/staff/systems/john/welcome.html <-- the usual crud
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1998-07-18 4:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-07-18 4:00 file command busted in V4.0x? John Hascall
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox