summaryrefslogtreecommitdiffstats
path: root/usr.bin/file
diff options
context:
space:
mode:
authorjmg <jmg@FreeBSD.org>2006-05-28 07:15:35 +0000
committerjmg <jmg@FreeBSD.org>2006-05-28 07:15:35 +0000
commit601e4d0400bfb45a2776cecf440c402903fb9cd2 (patch)
tree3b37f0155538d6a271423f0f2db857622367cf0c /usr.bin/file
parentdc6d8065e601f808e8fa40f8ddea459edd78d5d0 (diff)
downloadFreeBSD-src-601e4d0400bfb45a2776cecf440c402903fb9cd2.zip
FreeBSD-src-601e4d0400bfb45a2776cecf440c402903fb9cd2.tar.gz
document that even if magic is newer than magic.mgc, it isn't used
compiling mgc on a big endian system (specificly tested sparc64) breaks, using one from a little endian system works
Diffstat (limited to 'usr.bin/file')
-rw-r--r--usr.bin/file/magic.518
1 files changed, 18 insertions, 0 deletions
diff --git a/usr.bin/file/magic.5 b/usr.bin/file/magic.5
index 9d5bd04..07cb35d 100644
--- a/usr.bin/file/magic.5
+++ b/usr.bin/file/magic.5
@@ -254,6 +254,24 @@ a system on which the lengths are invariant.
.Pp
There is (currently) no support for specified-endian data to be used in
indirect offsets.
+.Pp
+If
+.Pa /usr/share/misc/magic
+is newer than
+.Pa /usr/share/misc/magic.mgc
+it is not used.
+Use the command:
+.Po
+cd /usr/share/misc &&
+.Nm file
+.Fl C
+.Fl m Ar magic
+.Pc
+to rebuild.
+.Pp
+Compiling the magic file on a big endian system is broken.
+Using a compiled magic file from a little endian system on a big endian system
+works fine.
.Sh SEE ALSO
.Xr file 1
.\"
OpenPOWER on IntegriCloud