summaryrefslogtreecommitdiff
path: root/tmac/groff_tmac.man
diff options
context:
space:
mode:
authorwlemb <wlemb>2000-11-13 16:51:26 +0000
committerwlemb <wlemb>2000-11-13 16:51:26 +0000
commitb4daf3b0fd8f8efd95141f6375003e26b822da36 (patch)
tree9310440a358a56eb9a73662e730fcb434ab5fe06 /tmac/groff_tmac.man
parent9ab09435852a552b6ea5acb3879d398c743ea44e (diff)
downloadgroff-b4daf3b0fd8f8efd95141f6375003e26b822da36.tar.gz
For security reasons, don't use the current directory but the home
directory while searching and scanning troffrc and troffrc-end. Similarly, replace the current directory with the home directory in the font path. * Makefile.in (fontpath, tmacpath): Remove current directory. * src/libs/libgroff/searchpath.cc (search_path::search_path): Add two parameters `add_home' and `add_current'. (search_path::~search_path, search_path::command_line_dir, search_path::open_file): Remove tests for `dirs' being zero. * src/include/searchpath.h: Adjust. * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add `safer_macro_path'. * src/libs/libgroff/fontfile.cc: Adjust `font_path'. * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'. * src/roff/troff/input.cc: Use `mac_path', initialized with `macro_path'. (process_startup_file): Set `mac_path' to `safer_macro_path'. * src/roff/troff/env.cc: Use `mac_path'. * src/preproc/eqn/main.cc (main): Use `safer_macro_path'. * NEWS, man/roff.man, src/roff/troff/troff.man, src/rof/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README: Updated. * src/include/lib.h: Don't include groff-getopt.h for OSF/1. * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++. * configure.in: Fix typo in comment. * configure: Regenerated. * src/libgroff/*, src/include/*, src/roff/troff/*: Fixing copyright dates.
Diffstat (limited to 'tmac/groff_tmac.man')
-rwxr-xr-xtmac/groff_tmac.man49
1 files changed, 25 insertions, 24 deletions
diff --git a/tmac/groff_tmac.man b/tmac/groff_tmac.man
index 00a941bb..8234b6b6 100755
--- a/tmac/groff_tmac.man
+++ b/tmac/groff_tmac.man
@@ -152,7 +152,7 @@ macro package may be specified as
.RE
.LP
The easiest way to find out which macro packages are available on a
-system is to check the content of the
+system is to check the contents of the
.I tmac
directories.
For example, a file called
@@ -363,34 +363,35 @@ The macro files are kept in the
all of which constitute the
.B tmac
.BR path.
-In accordance with the Filesystem Hierarchy Standard (FHS), the standard
-tmac directory location for groff is
-.IB /usr/share/groff/ <version> /tmac\c
-, a local installation will use
-.IB /usr/local/share/groff/ <version> /tmac\c
-\&.
-An additional directory for site-specific files which will be searched by
-default (before the standard tmac directory) is
-.I /usr/share/groff/site-tmac
-(resp.\&
-.IR /usr/local/share/groff/site-tmac ).
-Older systems used a subdirectory of
-.IR /usr/lib .
-Independently of the default tmac path, the tmac path actually used by a
-document can always be set by a shell environment variable, cf. section
-.BR ENVIRONMENT .
+.LP
+The elements of the search path for macro files are (in that order):
+.IP \(bu 4
+the directories specified with troff's resp. groff's
+.B \-M
+command line option
+.IP \(bu 4
+the directories given in the
+.B GROFF_TMAC_PATH
+environment variable
+.IP \(bu 4
+the current directory
+.IP \(bu 4
+a site-specific (platform-independent) directory, a platform-specific
+directory, and the main tmac directory:
+.IP "" 6
+@LOCALMACRODIR@
+.br
+@SYSTEMMACRODIR@
+.br
+@MACRODIR@
.\" --------------------------------------------------------------------
.SH ENVIRONMENT
.\" --------------------------------------------------------------------
.TP
.B GROFF_TMAC_PATH
-A colon separated list of tmac directories in which to search for macro
-files, the
-.B tmac
-.BR path .
-If unset a default path is used as is outlined in the
-.B FILES
-section.
+A colon separated list of additional tmac directories in which to search
+for macro files.
+See the previous section for a detailed description.
.\" --------------------------------------------------------------------
.SH BUGS
.\" --------------------------------------------------------------------