Author: Michael Piefel Description: FIXME, and #417511. diff -Naurp file.orig/doc/file.man file/doc/file.man --- file.orig/doc/file.man 2011-09-08 17:23:06.837388190 +0200 +++ file/doc/file.man 2011-09-08 17:35:51.108887922 +0200 @@ -55,7 +55,7 @@ meaning anything else (data is usually or non-printable). Exceptions are well-known file formats (core files, tar archives) that are known to contain binary data. -When modifying magic files or the program itself, make sure to +When adding local definitions to /etc/magic, make sure to .Em "preserve these keywords" . Users depend on knowing that all the readable files in a directory have the word @@ -99,7 +99,8 @@ The concept of a has been applied by extension to data files. Any file with some invariant identifier at a small fixed offset into the file can usually be described in this way. -The information identifying these files is read from the compiled +The information identifying these files is read from /etc/magic +and the compiled magic file .Pa __MAGIC__.mgc , or the files in the directory @@ -415,12 +416,6 @@ will be distributed periodically. The order of entries in the magic file is significant. Depending on what system you are using, the order that they are put together may be incorrect. -If your old -.Nm -command uses a magic file, -keep the old magic file around for comparison purposes -(rename it to -.Pa __MAGIC__.orig ) . .Sh EXAMPLES .Bd -literal -offset indent $ file file.c file /dev/{wd0a,hda}