Date: Wed, 4 Oct 1995 17:59:45 -0700 (PDT) From: Lyndon Nerenberg <lyndon@orthanc.com> To: FreeBSD-gnats-submit@freebsd.org Subject: bin/766: file doesn't grok HTML (+FIX) Message-ID: <199510050059.RAA01708@multivac.orthanc.com> Resent-Message-ID: <199510050110.SAA12045@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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> HTML text 0 string \<html> 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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199510050059.RAA01708>