From owner-cvs-usrbin Fri Dec 20 14:19:21 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id OAA12087 for cvs-usrbin-outgoing; Fri, 20 Dec 1996 14:19:21 -0800 (PST) Received: (from joerg@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id OAA12080; Fri, 20 Dec 1996 14:19:20 -0800 (PST) Date: Fri, 20 Dec 1996 14:19:20 -0800 (PST) From: Joerg Wunsch Message-Id: <199612202219.OAA12080@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-usrbin Subject: cvs commit: src/usr.bin/file ascmagic.c Sender: owner-cvs-usrbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk joerg 96/12/20 14:19:19 Modified: usr.bin/file ascmagic.c Log: Move the check for ASCIIness earlier. This avoids the following misdetection: j@uriah 307% file X.hga X.hga: 80386 COFF executable not stripped j@uriah 308% strings X.hga | head -3 ~f&`i .text .data j@uriah 309% strings X.hga | file - standard input: assembler program text New version: j@uriah 310% strings X.hga | ./file - standard input: International language text Reviewed by: christos@deshaw.com (Christos Zoulas) Revision Changes Path 1.4 +7 -7 src/usr.bin/file/ascmagic.c