Commit Graph

125 Commits

Author SHA1 Message Date
jkh
9c0cd3f9df Make the long-awaited change from $Id$ to $FreeBSD$
This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore.  This update would have been
insane otherwise.
1997-01-14 07:20:47 +00:00
wosch
e902881dbf Sort cross references. 1997-01-13 00:25:51 +00:00
mpp
86afa9e801 Fix some file descriptor leaks. Closes PR# 2392.
2.2 candidate.
1997-01-09 14:50:42 +00:00
ache
799d954dff Even more buffer overflow fixes
Change CATMODE to 0644, because group man not used
Add immutable sbit to man binary, so if user even got man uid,
he can't replace man binary with fake one

Should go to 2.2

Submitted by: Marc Slemko <marcs@znep.com> with small editing by me
1996-12-19 10:45:16 +00:00
ache
184a8f05d4 Fix many buffer overflows, sprintf -> snprintf
Fix manpath dirs count overflow

Should be in 2.2
1996-12-18 20:55:26 +00:00
ache
b0f9e15658 Fix my popen fix: conditionalize saving/restoring of euid
Should be in 2.2
1996-12-18 20:07:49 +00:00
ache
cdad75c492 Drop man priveledges before popen and restore them after it, because
it is possible to execute system command from f.e groff

Should be in 2.2
1996-12-18 19:46:21 +00:00
mpp
af38820ce7 Correct some xrefs/mlinks. 1996-12-14 23:27:20 +00:00
mpp
85668a7380 Convert to mdoc format.
Submitted by:	Sandro Sigala <sandro@cat.local.net> as part of PR# 2134
1996-12-09 07:57:54 +00:00
mpp
742c032a98 Minor formatting fixes.
Submitted by:	Sandro Sigala <sandro@cat.local.net> as part of PR # 2134.
1996-12-09 07:26:04 +00:00
mpp
6d5a3e8afb Fix a spelling error. 1996-12-09 07:00:17 +00:00
mpp
cb2ea2e3dc Convert man page to mdoc format.
Submitted by:	Sandro Sigala <sandro@cat.local.net> as part of PR# 2154
1996-12-09 06:59:17 +00:00
asami
24c7fbf631 Remove /usr/ucb and /usr/local/mh/bin from MANPATH_MAP, we don't ship
the system with these (and the mh port doesn't install there either).

Comment out /usr/X386/bin in MANPATH_MAP, it is already commented out
in MANDATORY_MANPATH.

2.2 candidate, I guess.  I can't even imagine why these stuff were
still there!
1996-12-07 23:32:37 +00:00
wosch
948d18efb7 Not hang in the downcase routine.
Submitted by: Trevor Blackwell tlb@viaweb.com

2.1.6/2.2 Candidate
1996-11-05 23:35:16 +00:00
ache
15cacdeca2 Remove unused file 1996-10-31 08:03:26 +00:00
ache
29051eec3f Localize it 1996-10-31 08:01:16 +00:00
wosch
b03342aca8 grep(1) should not parse manpages as arguments.
Now `apropos -xfer' works.
1996-09-27 17:36:50 +00:00
wosch
1c66eea617 Reverts exit status for man -k' and man -f'.
Man(1) now return 0 if apropos/whatis return 0, otherwise 1.
1996-09-27 17:34:57 +00:00
wosch
5959c2963d Set enviroment variable PAGER=pager if using option `man -P pager'
This inherit variable PAGER for childs like whatis(1), e.g.
`man -P less -k man' should now work like expected.  Close PR#1068
1996-09-16 22:52:02 +00:00
wosch
3b03c842bc Cleanup exit status; 2: syntax error, 0: keyword matched,
$exit_nomatch: no keyword matched. Default value for variable
exit_nomatch is 0 because `man -k' don't like exit status != 0

Detected by: "Stephen J. Roznowski" <sjr@zombie.ncsc.mil>
1996-09-14 23:20:33 +00:00
bde
218243765f Fixed DPADD. 1996-09-05 17:16:10 +00:00
wosch
e99625b29c sync copyright with /usr/share/examples/etc/bsd-style-copyright 1996-08-27 20:04:45 +00:00
ache
0b7801e93e Restore my backed out changes (writting cats) because they was
not reviewed by pst in claimed period (1 week) and over 3 weeks passed.
CONSTRUCTIVE complaints welcome!
1996-07-09 15:37:26 +00:00
wosch
5f71d9c873 add manpage getNAME(1) 1996-07-08 20:18:28 +00:00
wosch
1b3ba8de9e Exits 0 on success, and 1 if no keyword matched.
Start $PAGER only if we find a manual page.
1996-07-08 20:03:18 +00:00
jkh
e693c16dd8 Bring in my changes for removing the pestilent obj links (unless you
really want them) from /usr/src.  This is the final version of the
patches, incorporating the feedback I've received from -current.
1996-06-24 04:26:21 +00:00
ache
834acc9663 Back out security changes until pst review them 1996-06-22 21:10:19 +00:00
ache
073e824120 Do not produce empty cat file in debug mode 1996-06-22 08:05:11 +00:00
ache
f7ae5b134a Close security holes and restore suid bit
Restore writting cat's functionality
1996-06-21 18:49:36 +00:00
lars
1dc0790042 Reviewed by: joerg
Change man so that it will still display the man page even if it
cannot create a "cat" file.
1996-06-01 03:19:59 +00:00
pst
b73e9cdfad Remove setuid bit, it's not necessary. 1996-05-22 15:53:38 +00:00
pst
a8b5b6e2b5 Call groff directly instead of using nroff shell script.
Submitted by:	peter
1996-05-22 15:53:19 +00:00
wosch
45b3798d38 New option -append: teach makewhatis to only add records, instead
of clobbering the entire database.

sort options in alphabetic order.

install manpage makewhatis.local.8
1996-05-22 00:57:42 +00:00
jkh
f403cde040 Invoke proper gzip 1996-05-20 12:52:08 +00:00
wosch
f2ad772ff6 Makewhatis appended the filename to list of keywords if no keyword
matched the filename. Now put the list after the filename. E.g.

filename: vt220keys.1
Keyword: vt220

was: vt220(1), vt220keys(1)   - define SHIFTED [...]
now: vt220keys(1), vt220(1)   - define SHIFTED [...]
1996-05-14 23:07:05 +00:00
wosch
43763fc2db Bugfix: nested *?+ in regexp at /usr/bin/makewhatis line 286
Submitted by: invalid opcode <coredump@nervosa.com>

makewhatis.local - start makewhatis(1) only for file systems
                   physically mounted on the system
Running makewhatis from /etc/weekly for rw nfs-mounted /usr may kill
your NFS server -- all clients start makewhatis at the same time!
So use this wrapper instead calling makewhatis directly.

Pointed out by: Bruce
1996-05-12 21:02:04 +00:00
mpp
dfbf6cbddc Correct some man page xrefs, and some other minor changes to bring some
man pages up to mdoc guidelines and fix some minor formatting glitches.
Also fixed a number of man pages to not abuse the .Xr macro to
display functions and path names and a lot of other junk.
1996-04-08 04:18:31 +00:00
wosch
d9786fa4d3 Don't count character ``+'' as garbage (c++.1, flex++.1)
Submitted by: joerg
1996-03-21 18:17:41 +00:00
wosch
4d702e2748 remove ``whatis'' 1996-03-10 18:59:11 +00:00
wosch
67d62f5946 share the code between apropos and whatis 1996-03-10 18:52:33 +00:00
wosch
c5e182912d print error messages to stderr
don't fail if search arguments contain spaces
allow programs from $PATH as PAGER
faster
1996-02-25 23:41:46 +00:00
bde
dbf7db4c11 Use ${ECHO} instead of echo' so that make -s' is fairly quiet. 1996-02-25 20:25:05 +00:00
wosch
96d07711e3 making <page>.1 from <page>.man 1996-02-06 23:48:03 +00:00
wosch
14b39d5345 man.1 depend on man.man 1996-01-24 00:22:27 +00:00
wosch
1528d7ee78 manpath.1 depend on manpath.man 1996-01-24 00:18:29 +00:00
joerg
707e90624e `-w' was actually a flag, not an option... 1996-01-23 21:27:39 +00:00
joerg
16fa5683ce Add a hint that the -w flag to catman(1) is actually the command
wakewhatis(1) for us.

Closes PR # docs/966

Submitted by:	obrien@cs.ucdavis.edu (David E. O'Brien)
1996-01-23 21:09:39 +00:00
bde
6ae9438f75 Search section 9. 1996-01-23 14:03:26 +00:00
mpp
3956ebc3ff Change the reference to less(1) (which may not be installed) to more(1).
Closed PR# 847.
1996-01-22 09:25:45 +00:00
peter
6470cdf2a0 This commit was generated by cvs2svn to compensate for changes in r13122,
which included commits to RCS files with non-trunk default branches.
1995-12-30 19:02:48 +00:00