From owner-freebsd-hackers Mon Feb 18 7:51:12 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from rwcrmhc52.attbi.com (rwcrmhc52.attbi.com [216.148.227.88]) by hub.freebsd.org (Postfix) with ESMTP id C053937B404 for ; Mon, 18 Feb 2002 07:50:41 -0800 (PST) Received: from blossom.cjclark.org ([12.234.91.48]) by rwcrmhc52.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020218155041.XUXE1147.rwcrmhc52.attbi.com@blossom.cjclark.org>; Mon, 18 Feb 2002 15:50:41 +0000 Received: (from cjc@localhost) by blossom.cjclark.org (8.11.6/8.11.6) id g1IFofF35296; Mon, 18 Feb 2002 07:50:41 -0800 (PST) (envelope-from cjc) Date: Mon, 18 Feb 2002 07:50:41 -0800 From: "Crist J. Clark" To: Dan Langille Cc: hackers@FreeBSD.ORG Subject: Re: file(1) returns amusing result Message-ID: <20020218075041.C48401@blossom.cjclark.org> References: <200202180623.g1I6Ndk71540@lists.unixathome.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200202180623.g1I6Ndk71540@lists.unixathome.org>; from dan@langille.org on Mon, Feb 18, 2002 at 01:23:08AM -0500 X-URL: http://people.freebsd.org/~cjc/ Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Feb 18, 2002 at 01:23:08AM -0500, Dan Langille wrote: > As part of my FreshPorts fun, I decided that after fetching a file from > cvsweb, I should make sure the fetch worked. I decided to do that via > file(1) and inspect the output. I was testing for ASCII, but that appears > to not be good enough. Now I just test for HTML and reverse the sense of > the test. > > Here was the most amusing output: > > $ file -b /usr/home/dan/ports/databases/mysql++/Makefile > Apple Old Partition data block size: 21117 first type: AS_CONFIGURE= > yes, number of blocks: 1702047597, > > $ head /usr/home/dan/ports/databases/mysql++/Makefile > # ports collection makefile for: MySQL++ > # Date created: 20th July 2000 > # Whom: Miklos Niedermayer > # > # $FreeBSD: ports/databases/mysql++/Makefile,v 1.10 2002/02/11 13:15:14 > ijliao Exp $ > # > > PORTNAME= mysql++ > PORTVERSION= 1.7.9 > CATEGORIES= databases devel As if anyone cares, # ports collection makefile for: MySQL++ # Date created: 20th July 2000 # Whom: Miklos Niedermayer # # $FreeBSD: ports/databases/mysql++/Makefile,v 1.10 2002/02/11 13:15:14 ijliao Exp $ # PORTNAME= mysql++ PORTVERSION= 1.7.9 CATEGORIES= databases devel MASTER_SITES= ftp://ftp.free.fr/pub/MySQL/Downloads/mysql++/ \ ftp://gd.tuwien.ac.at/db/mysql/Downloads/mysql++/ \ ftp://mirror.sit.wisc.edu/mirrors/mysql/Downloads/mysql++/ MAINTAINER= mico@bsd.hu LIB_DEPENDS= mysqlclient.10:${PORTSDIR}/databases/mysql323-client ^^ It's those two characters, 0x5453, at an offset of 0x200 bytes that causes the match. Gotta love file(1). -- Crist J. Clark | cjclark@alum.mit.edu | cjclark@jhu.edu http://people.freebsd.org/~cjc/ | cjc@freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message