From lyndon@multivac.orthanc.com Wed Oct 4 18:00:05 1995 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 Subject: file doesn't grok HTML (+FIX) X-Send-Pr-Version: 3.2 >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: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Oct 4 18:10:00 PDT 1995 >Closed-Date: Tue Jan 23 04:44:17 PST 1996 >Last-Modified: Tue Jan 23 04:46:21 PST 1996 >Originator: Lyndon Nerenberg >Release: FreeBSD 2.0.5-RELEASE i386 >Organization: Orthanc Systems: Internet and UNIX consulting ___________________________________________________________ lyndon@orthanc.com || canada!lyndon || Fax: +1 604 561 2067 http://www.orthanc.com/ >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 >Release-Note: >Audit-Trail: State-Changed-From-To: open->closed State-Changed-By: mpp State-Changed-When: Tue Jan 23 04:44:17 PST 1996 State-Changed-Why: The recent import of file version 3.19 contains /etc/magic information for HTML files. I'm not going to address the /etc/magic location issue at this time. >Unformatted: