Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Apr 1997 20:14:13 +0200 (CEST)
From:      Ollivier Robert <roberto@keltia.freenix.fr>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/3187: file.1 still speaks of /etc/magic
Message-ID:  <199704031814.UAA01914@keltia.freenix.fr>
Resent-Message-ID: <199704031820.KAA06792@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         3187
>Category:       bin
>Synopsis:       file.1 still mention /etc/magic
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr  3 10:20:02 PST 1997
>Last-Modified:
>Originator:     Ollivier Robert
>Organization:
Usenet Canal Historique
>Release:        FreeBSD 3.0-CURRENT i386
>Environment:

CURRENT from March, 23th.

FreeBSD keltia.freenix.fr 3.0-CURRENT FreeBSD 3.0-CURRENT #41: Sun Mar 23 23:01:22 CET 1997     roberto@keltia.freenix.fr:/src/src/sys/compile/DKELTIA  i386

file(1) 3.22

>Description:

src/usr.bin/file/file.1 mentions /etc/magic:

...
When modifying the file
.I /etc/magic
or the program itself, 
...
The information in these files is read from the magic file
.I /etc/magic.
.PP
...
.SH FILES
.I /etc/magic
\- default list of magic numbers
.B file
command uses a magic file,
keep the old magic file around for comparison purposes
(rename it to 
.IR /etc/magic.orig ).
...

>How-To-Repeat:

man file

>Fix:
	
Apply the following patch:

Index: file.1
===================================================================
RCS file: /spare/FreeBSD-current/src/usr.bin/file/file.1,v
retrieving revision 1.9
diff -u -2 -r1.9 file.1
--- file.1	1997/03/18 19:37:17	1.9
+++ file.1	1997/04/03 18:12:10
@@ -43,5 +43,5 @@
 that are known to contain binary data.
 When modifying the file
-.I /etc/magic
+.I /usr/share/misc/magic
 or the program itself, 
 .B "preserve these keywords" .
@@ -79,5 +79,5 @@
 offset into the file can usually be described in this way.
 The information in these files is read from the magic file
-.I /etc/magic.
+.I /usr/share/misc/magic.
 .PP
 If an argument appears to be an
@@ -136,6 +136,8 @@
 (on systems that support symbolic links).
 .SH FILES
+.I /usr/share/misc/magic
+\- default list of magic numbers (used to be
 .I /etc/magic
-\- default list of magic numbers
+in previous versions of FreeBSD)
 .SH ENVIRONMENT
 The environment variable


>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199704031814.UAA01914>