Commit Graph

287 Commits

Author SHA1 Message Date
ru
1edab47bcf For variables that are only checked with defined(), don't provide
any fake value.
2004-10-24 15:33:08 +00:00
ru
4ef1bd55ad Mechanically kill hard sentence breaks. 2004-07-02 21:53:39 +00:00
ru
685e85196c Removed trailing whitespace. 2004-07-02 19:07:33 +00:00
des
0ef43a88b9 Remove Perl lines; it's better to let use.perl handle them. 2004-02-04 22:37:14 +00:00
des
47cdeead3e The current Perl 5.8 version is 5.8.1; 5.8.2 is right around the corner. 2003-11-10 08:28:22 +00:00
bde
ccabd20ce0 Fix previous commit. glob_filename() returns "(char **) -1" for certain
errors, not necessarily a pointer such that (intptr_t)pointer is -1.

Also fix the style bug that the cast was not followed by a space.
This style of this file is now perfectly non-KNF for this cast too.
2003-10-26 06:40:37 +00:00
peter
5200968edc Pointers dont fit in an int on 64 bit platforms. Fix a gcc warning. 2003-10-26 04:12:02 +00:00
jkoshy
c0d81d27c4 Detect errors during 'cat' page creation better. This fixes bin/5591.
Reviewed by:	ru
2003-10-15 00:36:44 +00:00
des
6432c673a4 Perl 5.8.0 has been in ports for a long time. Add the correct directory
to manpath.config so use.perl won't needs to add it.
2003-09-18 10:44:42 +00:00
ru
a498b17870 Add /usr/X11R6/man to the optional manpath.
PR:		conf/56626
Submitted by:	Oliver Eikemeier
2003-09-10 00:07:28 +00:00
ache
24cddf8e9e Remove collate_range_cmp() stabilization, it conflicts with ranges 2003-08-03 04:47:34 +00:00
ru
095c2332c2 catman(1) sources now live elsewhere. 2003-05-01 23:48:11 +00:00
ache
591821672e Add /usr/local/man as OPTIONAL_MANPATH 2003-02-11 01:04:53 +00:00
nectar
b8b3bc3da7 Install the OpenSSL man pages in /usr/share/openssl/man
and remove the WANT_OPENSSL_MANPAGES knob.
2003-02-10 19:57:56 +00:00
ru
75beed43cd Catch up with The Great Perl Script Rewrite. 2002-11-18 10:25:27 +00:00
ru
cd20fe329e Install /usr/libexec/makewhatis.local and /usr/libexec/catman.local.
This has slipped through the cracks of The Great Perl Script Rewrite.

Repocopied by:	joe
2002-11-18 10:11:22 +00:00
kris
877eb20660 Don't dump core if none of the directories in /etc/manpath.config exist.
Submitted by:	terry
2002-10-27 02:12:52 +00:00
ru
11a6d446f9 Grammar nits.
Submitted by:	Ken Stailey <kstailey@speakeasy.net>
2002-10-21 07:44:42 +00:00
ru
3528a2ae54 Revert last delta. SGR support in grotty(1) is disabled system-wide
in /usr/share/tmac/troffrc pending the issue resolution on -arch.
2002-10-18 09:14:17 +00:00
ru
5bdc86400b Groff 1.18.1 comes in with ANSI color support, enabled by default.
In "nroff" mode, italic font renders as an underlined text, which
makes it indistinguishable from the bold text on color monitors
(cons25 terminal type), yet it requires the less(1)'s -R option.
(Refer to the new grotty(1) manpage for details.)

So turn off the color support for now (when generating catpages),
until we figure out what do we do with this new feature.  I have
a patch for grotty(1) that tells it to use the "reverse video"
attribute to render the italic font.  Once this is accepted, we
can turn color support back on (if there won't be any objections
from the community).
2002-10-11 09:16:24 +00:00
ru
8a10b95c4d Pass our idea of a manpage's locale from man(1) down to mdoc(7). 2002-09-30 11:00:04 +00:00
eric
3084725715 Adhere to guidelines when testing for null strings.
Submitted by:	rwatson
2002-09-03 17:39:26 +00:00
eric
9af19fee4a Use the default pager if the environment variable is blank.
PR:		37662
MFC after:	5 days
2002-08-27 09:31:27 +00:00
ru
5ebb137010 mdoc(7) police: Removed redundant .Ns calls. 2002-08-13 16:07:28 +00:00
ru
e287643099 POSIX.1-2001 says ``man -k'' should produce results equivalent to
the ``grep -Ei'' searching.

MFC after:	3 days
2002-08-07 17:39:35 +00:00
charnier
31f74328c4 The .Nm utility 2002-07-14 15:12:00 +00:00
eric
06ccdcb153 Correctly state the size of the help message.
Sponsored by: Apple
2002-06-24 20:57:44 +00:00
ache
74a747af83 Remove /usr/share/perl/man 2002-05-24 03:21:11 +00:00
markm
f175d6cdc0 remove perl scripts from the build. 2002-05-18 19:47:57 +00:00
ru
e68122e850 Removed now unused INTERNALSTATICLIB.
INTERNALLIB now implies NOPIC and NOPROFILE.
Removed gratuitous NOMAN.
2002-05-13 11:09:07 +00:00
eric
4c5284a3e9 Move ID tag. 2002-04-27 19:57:22 +00:00
eric
aadaaca5b9 When a compound section name is specified, search for pages that actually
match the requested section. Previously, the section would be trimmed and
every entry matching the page name would be displayed.

Sponsored by:	Apple
2002-04-24 20:07:06 +00:00
eric
2603e6f505 Fix compilation in the non-FreeBSD case.
Sponsored by:	Apple
2002-04-13 01:17:21 +00:00
brian
d0710b7887 Update perl's man path for 5.6.1 2002-03-23 00:04:15 +00:00
ru
c1d0895054 Revision 1.45 of gnu/usr.bin/man/man.c obviated the need to link
manpages in machine-specific subdirectories (like man4/i386/) to
"../".  This change didn't propagate here resulting in a loss of
whatis(1) database entries.  Fix this.

Reviewed by:	tobez
MFC after:	1 week
2002-03-22 09:59:16 +00:00
charnier
a141f6cef8 RETURN VALUES is for sections 2, 3 and 9, but here in section 1 man page,
DIAGNOSTICS should be used instead.

Reviewed by:	wosch
2002-03-12 20:00:52 +00:00
wosch
47fd2ff625 apropos(1) manual page doesn't tell that keyword can be regular expression
PR:	gnu/31685
Submitted by: Andrey Simonenko <simon@simon.org.ua>
2002-03-09 20:00:08 +00:00
ru
8b8a3f72e1 Reincarnate SETUID code in man(1), not compiled in by default.
The code will be fixed for all known security vulnerabilities,
and a make.conf(5) knob (ENABLE_SUID_MAN) will be provided for
those who still want it installed setuid for whatever reasons.
2002-01-22 15:15:38 +00:00
ru
9f388e03eb GC spurious -m in the usage(). 2002-01-18 16:08:29 +00:00
ru
eab37fec1c Do not install man(1) setuid ``man''.
The catpaging and setuidness features of man(1) combined make
it vulnerable to a number of security attacks.  Specifically,
it was possible to overwrite system catpages with arbitrarily
contents by either setting up a symlink to a directory holding
system catpages, or by writing custom -mdoc or -man groff(1)
macro packages and setting up GROFF_TMAC_PATH in environment
to point to them.  (See PR below for details).

This means man(1) can no longer create system catpages on a
regular user's behalf.  (It is still able to if the user has
write permissions to the directory holding catpages, e.g.,
user's own manpages, or if the running user is ``root''.)

To create and install catpages during ``make world'', please
set MANBUILDCAT=YES in /etc/make.conf.  To rebuild catpages
on a weekly basis, please set weekly_catman_enable="YES" in
/etc/periodic.conf.

PR:		bin/32791
2002-01-15 14:11:05 +00:00
ru
c7c90ed283 Now that we have the original BSD man(1)'s ${MACHINE} feature
back (as of man.c,v 1.45), change the meaning of the -m option
from poorly documented and badly coded "alternate system" to a
much more useful "different architecture for the same system".

PR:		docs/31261
2002-01-11 15:12:00 +00:00
ru
dc6081a1fd Document how manpath(1) handles user's path directories that end in "/bin".
PR:		docs/30940
MFC after:	3 days
2001-10-01 16:58:30 +00:00
ru
f57a015920 Fixed some of style bugs. 2001-09-12 10:04:42 +00:00
ru
faa6547786 SECURITY.
Avoid using setre[ug]id() calls.
Removed the setgid stuff we don't need.
2001-09-06 11:54:28 +00:00
ru
cd41d1bdf6 Skip empty calls in the NAME section after the .Nm macro call.
This makes the following difference:

-groff_mdoc(7), -(7)      - groff_mdoc reference for groff's mdoc implementation
+groff_mdoc(7)            - reference for groff's mdoc implementation
2001-08-09 15:42:40 +00:00
ru
af3f9a021f An empty request (single dot on the line) is treated as an
empty line by troff(1) and is ignored.  Teach makewhatis(1)
about this.  This makes the following difference:

-groff_man(7), . groff_man(7) - groff `man' macros to support generation of man pages
+groff_man(7)             - groff `man' macros to support generation of man pages
-groff_mdoc(7), -(7)      - . groff_mdoc reference for groff's mdoc implementation
+groff_mdoc(7), -(7)      - groff_mdoc reference for groff's mdoc implementation
-troff(1), . . troff(1)   - format documents
+troff(1)                 - format documents

Noticed by:	yar
2001-08-09 15:23:30 +00:00
ru
091f430788 Teach makewhatis(1) about mdoc(7) .Xr macro.
% whatis finger.conf
finger.conf(5) - finger 1 alias configuration file

% whatis finger.conf
finger.conf(5) - finger(1) alias configuration file

Reviewed by:	MAINTAINER timeout
2001-08-09 15:12:59 +00:00
ru
09d142dfd5 mdoc(7) police:
Avoid using parenthesis enclosure macros (.Pq and .Po/.Pc) with plain text.
Not only this slows down the mdoc(7) processing significantly, but it also
has an undesired (in this case) effect of disabling hyphenation within the
entire enclosed block.
2001-08-07 15:48:51 +00:00
ru
29353320f4 mdoc(7) police: removed punctuation after the last SEE ALSO xref. 2001-07-10 18:00:19 +00:00
ru
d177b65ce4 mdoc(7) police: removed HISTORY info from the .Os call. 2001-07-10 10:42:19 +00:00