From owner-freebsd-bugs Wed Oct 4 18:10:03 1995 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id SAA12052 for bugs-outgoing; Wed, 4 Oct 1995 18:10:03 -0700 Received: (from gnats@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id SAA12045 ; Wed, 4 Oct 1995 18:10:01 -0700 Resent-Date: Wed, 4 Oct 1995 18:10:01 -0700 Resent-Message-Id: <199510050110.SAA12045@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, "Received:from multivac.orthanc.com (root@multivac.orthanc.com [204.244.20.2]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id SAA11723 for" ; Wed, 4.Oct.1995.18:00:02.-0700 Received: (from lyndon@localhost) by multivac.orthanc.com (8.7/8.7) id RAA01708; Wed, 4 Oct 1995 17:59:45 -0700 (PDT) Message-Id: <199510050059.RAA01708@multivac.orthanc.com> Date: Wed, 4 Oct 1995 17:59:45 -0700 (PDT) From: Lyndon Nerenberg To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: bin/766: file doesn't grok HTML (+FIX) Sender: owner-bugs@freebsd.org Precedence: bulk >Number: 766 >Category: bin >Synopsis: file doesn't grok HTML; /etc/magic in wrong place >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Oct 4 18:10:00 PDT 1995 >Last-Modified: >Originator: Lyndon Nerenberg >Organization: Orthanc Systems: Internet and UNIX consulting ___________________________________________________________ lyndon@orthanc.com || canada!lyndon || Fax: +1 604 561 2067 http://www.orthanc.com/ >Release: FreeBSD 2.0.5-RELEASE i386 >Environment: >Description: File(1) doesn't recognize HTML files. /etc/magic probably belongs in /usr/share/misc/magic. >How-To-Repeat: >Fix: Appended is a /usr/src/usr.bin/file/Magdir/html file with some really simple heuristics for spotting HTML files, and a diff to the Makefile to install the magic file in /usr/share/misc (does it really need to be in /etc? I can't spot any dependencies on this ...) # *Really* simple check for HTML 0 string \ HTML text 0 string \ HTML text *** 1.1 1995/10/05 00:52:24 --- Makefile 1995/10/05 00:52:47 *************** *** 23,29 **** # 4. This notice may not be removed or altered. # # Hacked and dismembered for bmake (Geoff Rehmet). ! MAGIC= /etc/magic MAGICOWN= bin MAGICGRP= bin MAGICMODE= 444 --- 23,29 ---- # 4. This notice may not be removed or altered. # # Hacked and dismembered for bmake (Geoff Rehmet). ! MAGIC= /usr/share/misc/magic MAGICOWN= bin MAGICGRP= bin MAGICMODE= 444 >Audit-Trail: >Unformatted: