302408 |
08-Jul-2016 |
gjb |
Copy head@r302406 to stable/11 as part of the 11.0-RELEASE cycle. Prune svn:mergeinfo from the new branch, as nothing has been merged here.
Additional commits post-branch will follow.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation |
299589 |
13-May-2016 |
truckman |
Instead of ignoring the EEXIST from link(), unconditionally unlink the terget before calling link(). This should prevent links to an old copy of the file from being retained.
|
299578 |
12-May-2016 |
truckman |
If fchdir() fails, call err() instead of warn().
|
299577 |
12-May-2016 |
truckman |
Avoid Coverity NUL termination warning about strncpy() by using memcpy() instead. It's probably a bit more optimal in this case anyway. [1]
The program logic leading up to the creation of the strncpy/memcpy destination buffer is a bit hairy. Add a call to assert() to make it clear what is happening here and detect any potential buffer overruns in the future.
Check a couple syscall error returns. Ignore the EEXIST error from link() to preserve existing behavior. [2] [3]
Reported by: Coverity CID: 1009659 [1], 1009349 [2], 1009350 [3]
|
284345 |
13-Jun-2015 |
sjg |
Add META_MODE support.
Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree.
Still need to add real targets under targets/ to build packages.
Differential Revision: D2796 Reviewed by: brooks imp
|
227155 |
06-Nov-2011 |
ed |
Add missing static keywords to catman(1)
|
224657 |
05-Aug-2011 |
uqs |
For POLA reasons, disable SGR sequences in catpages.
See r222647 for a similar change to bsd.doc.mk after SGR was generally turned on in groff.
Suggested by: ru Approved by: re (kib)
|
224639 |
03-Aug-2011 |
uqs |
Unbreak catman(1) by removing calls to col(1).
col(1) was mangling the SGR escapes and is not strictly required.
See r222647, r222648, r222650, and r222653 for more details.
Reported by: delphij Reviewed by: ru Approved by: re (kib) MFC after: 3 weeks
|
201512 |
04-Jan-2010 |
kib |
Modernize scandir(3) and alphasort(3) interfaces according to the IEEE Std 1003.1-2008. Both Linux and Solaris conforms to the new definitions, so we better follow too (older glibc used old BSDish alphasort prototype and corresponding type of the comparision function for scandir). While there, change the definitions of the functions to ANSI C and fix several style issues nearby.
Remove requirement for "sys/types.h" include for functions from manpage.
POSIX also requires that alphasort(3) sorts as if strcoll(3) was used, but leave the strcmp(3) call in the function for now.
Adapt in-tree callers of scandir(3) to new declaration. The fact that select_sections() from catman(1) could modify supplied struct dirent is a bug.
PR: standards/142255 MFC after: 2 weeks
|
201386 |
02-Jan-2010 |
ed |
Build usr.bin/ with WARNS=6 by default.
Also add some missing $FreeBSD$ to keep svn happy.
|
194548 |
20-Jun-2009 |
brooks |
Restore the check against running as root that I accidentally removed in r194493.
|
194493 |
19-Jun-2009 |
brooks |
When checking if we can write to a file, use access() instead of a manual permission check based on stat output. Also, get rid of the executability check since it is not used.
MFC after: 2 weeks
|
153115 |
05-Dec-2005 |
ru |
Prepare for MACHINE and hw.machine switching to "pc98" on FreeBSD/pc98.
Reviewed by: nyan
|
146466 |
21-May-2005 |
ru |
Sync program's usage() with manpage's SYNOPSIS.
|
140368 |
17-Jan-2005 |
ru |
Added the EXIT STATUS section where appropriate.
|
139185 |
22-Dec-2004 |
ru |
Look into machine-specific manpage subdirectories too.
PR: bin/72243 MFC after: 3 weeks
|
139183 |
22-Dec-2004 |
ru |
Fixed the only warning and mark as WARNS=6 clean.
|
139182 |
22-Dec-2004 |
ru |
- Fixed handling of manpage subdirectories:
catman /usr/share/man/man8 cd /usr/share/man; catman man8
- Don't print false warnings about invalid cat pages which are machine-specific cat page subdirectories (visible with -v).
- Fixed one memory leak.
|
116137 |
10-Jun-2003 |
ache |
Add (unsigned char) cast to ctype macros
|
116136 |
10-Jun-2003 |
ache |
Use setlocale & nl_langinfo to parse locale name
|
116135 |
10-Jun-2003 |
ache |
Remove deprecated locale names
|
115207 |
21-May-2003 |
ru |
Fixed catman(1) so that if the source files are compressed, the preformatted files are compressed with the same program as the source, and if the source files are uncompressed, the preformatted files are also uncompressed.
PR: bin/52213 Submitted by: Krister Joas <krister@gazonk.net>, ru Approved by: re (jhb)
|
107826 |
13-Dec-2002 |
ru |
mdoc(7) police: sort xrefs in SEE ALSO.
|
106120 |
29-Oct-2002 |
obrien |
Mostly support alternate manpage zipping.
|
105388 |
18-Oct-2002 |
ru |
Revert last delta. SGR support in grotty(1) is disabled system-wide in /usr/share/tmac/troffrc pending the issue resolution on -arch.
|
104874 |
11-Oct-2002 |
ru |
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).
|
102941 |
04-Sep-2002 |
dwmalone |
No need to declare optind as an external int.
|
97598 |
30-May-2002 |
ru |
mdoc(7) police: tidy up.
|
96845 |
18-May-2002 |
markm |
Add C rewrites of catman and makewhatis. These aren't quite as the submitter supplied them, as I did some WARNS=n fixups (mostly const-ification).
Submitted by: John Rochester <john@jrochester.org>
|