From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,85a2ee47b857436e,start X-Google-Attributes: gidfee84,public From: john@iastate.edu (John Hascall) Subject: file command busted in V4.0x? Date: 1998/07/18 Message-ID: <6op4hi$jqb$1@news.iastate.edu>#1/1 X-Deja-AN: 372552672 Organization: Iowa State University, Ames, Iowa USA Newsgroups: comp.unix.osf.osf1 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