Commit Graph

11637 Commits

Author SHA1 Message Date
bapt
642b9f5173 Use strlcpy(3) instead of strcpy(3) 2015-05-05 07:47:36 +00:00
bapt
a0da5a4be4 upper the warning level to 3 2015-05-05 07:42:40 +00:00
bapt
b04f76faa2 Another bit of ansification 2015-05-05 07:42:10 +00:00
bapt
ef4463e203 Ansify to allow to work on it later 2015-05-05 07:33:38 +00:00
bapt
e32b1e9092 Remove limitation on input lines by using getline(3) 2015-05-04 22:27:55 +00:00
bapt
3e499178cd Extend the list of known nroff/troff commands
Obtained from:	heirloom doctools
2015-05-04 22:18:58 +00:00
bapt
7169caff2e Take from heirloom's doctools version of checknr(1) some cosmetic fixes
This helps working on synchronising both tools
2015-05-04 22:05:12 +00:00
brooks
fe846feb04 Remove "capability mode sandbox enabled" messages.
These messages serve little purpose and break some consumers.

PR:		199855
Differential Revision:	https://reviews.freebsd.org/D2440
Reviewed by:	rwatson
Approved by:	pjd
MFC after:	1 week
Sponsored by:	DARPA, AFRL
2015-05-04 21:44:51 +00:00
bapt
5755f2166f Parse filename until first space then print the rest of the line after file
inclusion

This is the same behaviour of heirloom's soelim
2015-05-04 18:20:31 +00:00
bapt
d5ce924052 Capsicumize col(1) 2015-05-02 12:22:24 +00:00
bapt
14a360325d Actually push the right tests 2015-05-02 12:19:24 +00:00
bapt
b76c241652 Add regression test about reverse line feed to col(1) 2015-05-02 12:08:28 +00:00
bapt
0026949c41 Add regression tests for soelim(1) 2015-05-02 11:09:58 +00:00
bapt
aeb0d2a45d Improve compatibility groff's soelim
While here implement -C from GNU groff

Reported by:	delphij
2015-05-01 23:54:09 +00:00
delphij
ffdc60a5ea Correct - handling.
Reported by:	pkg-fallout
X-MFC-with:	r282318
2015-05-01 22:43:26 +00:00
bapt
bf4b130755 Replace groff's soelim by soeliminate(1) renamed soelim(1) 2015-05-01 20:08:25 +00:00
bapt
7cbe6caeb1 Remove bundled reallocarray(3) since it is now in libc 2015-05-01 18:32:54 +00:00
bapt
1b801f948f Use defines to improve clarity
MFC after:	2 weeks
2015-05-01 17:33:32 +00:00
bapt
0bd4fbdf68 col: fixing 25 year old bug
Makes col(1) respect POSIX again for escape sequences as decribed in its manpage
The bug was introduced in CSRG in 1990
This also reverts r280911

Differential Revision:	https://reviews.freebsd.org/D2424
Reviewed by:	jhb
MFC after:	2 weeks
2015-05-01 17:18:07 +00:00
emaste
7027d7c8c4 Actually add c++filt's Makefile
Missed in r282285

Pointy hat to:	emaste
2015-04-30 22:51:15 +00:00
emaste
8a9da57e83 Add ELF Tool Chain's c++filt to the build
Differential Revision:	https://reviews.freebsd.org/D2408
Reviewed by:	brooks, imp
Sponsored by:	The FreeBSD Foundation
2015-04-30 21:30:33 +00:00
trasz
0f1faab39c Remove spurious period.
MFC after:	1 month
Sponsored by:	International OCD Foun^W^W^WThe FreeBSD Foundation
2015-04-29 17:01:28 +00:00
trasz
4bc6bb96ac Make rctl(8) more user-friendly when RACCT/RCTL is disabled for some reason.
MFC after:	1 month
Sponsored by:	The FreeBSD Foundation
2015-04-29 16:41:49 +00:00
rene
e0e7dcf8e6 The Dutch queen abdicated two years ago, the national holiday associated with
her birthday is now associated with the birthday of her son.
2015-04-27 17:04:27 +00:00
oshogbo
d32baecb23 Add myself (oshogbo) to calendar.freebsd and committers-src.dot.
Approved by:	pjd (mentor)
2015-04-27 16:45:16 +00:00
jilles
9038472054 hexdump: Don't use uninitialized struct stat. 2015-04-26 21:34:55 +00:00
sobomax
09e002d8cf o Properly init prevtime, so that we don't print bogus value in the
first entry reported by the relative mode (-R).

o Properly print negative offsets, which I guess may happen if
records get re-ordered somehow, possibly due to the locking. Right
now we report huge bogus diff (i.e. 2 seconds or so).
2015-04-25 04:58:08 +00:00
delphij
f07d7ffd84 Try alternate addresses more agressively.
Attempt to connect to alternate addresses if the connect doesn't
succeed in 180ms, and cut wait time between connection attempts
in half for each additional, if no connection was established.

Take the first connection to succeed and close the others.

This makes whois more responsive when e.g. IPv6 service took long
time or fail to respond.

PR:		158125
Submitted by:	Mark Andrews <marka isc org> (with changes from me)
MFC after:	2 weeks
2015-04-25 00:51:44 +00:00
trasz
f9718e52b2 Make nfsstat(1) build with WARNS=6.
Sponsored by:	The FreeBSD Foundation
2015-04-24 07:57:59 +00:00
trasz
c8f92b825a Remove oldnfs support from nfsstat(1).
Reviewed by:	rmacklem@ (earlier version)
Sponsored by:	The FreeBSD Foundation
2015-04-23 14:36:01 +00:00
jhb
e4683250d1 Reassign copyright statements on several files from Advanced
Computing Technologies LLC to Hudson River Trading LLC.

Approved by:	Hudson River Trading LLC (who owns ACT LLC)
MFC after:	1 week
2015-04-23 14:22:20 +00:00
sjg
af117d16cb Merge bmake-20150418
PR: 199486
2015-04-21 04:40:38 +00:00
pfg
e13e816432 patch(1): small include changes.
Mostly to match OpenBSD, no functional change.

Obtained from:	OpenBSD
2015-04-20 22:15:18 +00:00
eadler
1f247fe702 find.1: Add missing whitespace:
Obtained from:	Dragonfly (dee38d02d51cc8316f82b0263158d2546f2398bc)
2015-04-20 02:23:00 +00:00
eadler
1cd30e69b5 rpcgen: fix use use of strcmp
strcmp only guarantee that it will return at least 1 if the string B
	is greater than that of string A.
2015-04-19 04:53:28 +00:00
eadler
a06fddc3fc calendar: remove useless check
lineline checked for 0 in the while loop condition.  There is no need to
	check for it additionally in the body.

CID:	1288959
MFC After:	1 week
2015-04-19 04:27:50 +00:00
trasz
7ba042082b Remove some oldnfs remnants.
Differential Revision:	https://reviews.freebsd.org/D2287
Reviewed by:	rmacklem@
Sponsored by:	The FreeBSD Foundation
2015-04-18 16:08:06 +00:00
delphij
76763465e1 r281540 was upstreamed as NetBSD r1.108 of gzip.c, note it as merged. 2015-04-16 22:30:57 +00:00
allanjude
3530f6e66c Fix libxo output from uptime command
the libxo output for uptime returned multiple 'uptime' keys, one each for number of days, hours, and minutes of uptime.
This is invalid JSON.
This patch makes the output the raw number of seconds, as well as adding keys for the individual unit values
A string of the original output from the plain-text uptime command is also added

Differential Revision:	https://reviews.freebsd.org/D2063
Reviewed by:	jmg
Approved by:	marcel
Sponsored by:	ScaleEngine Inc.
2015-04-16 22:09:37 +00:00
bdrewery
7a3f5ce86a Fix SIGINFO race causing final results to be lost to stderr.
If a SIGINFO comes in after the file is read then the 'siginfo' flag is set to
1 and the next call to show_cnt() (at exit) would print the data to stderr
rather than the expected stdout.

This was found with spamming Poudriere with SIGINFO which caused a 'wc -l'
execution to return no data rather than an expected number.

MFC after:	2 weeks
2015-04-16 21:44:35 +00:00
bdrewery
bcb387d747 Remove extra flags from r250462.
MFC after:	1 week
2015-04-16 02:24:40 +00:00
tijl
b0813ee288 Remove the const qualifier from iconv(3) to comply with POSIX:
http://pubs.opengroup.org/onlinepubs/9699919799/functions/iconv.html

Adjust all code that calls iconv.

PR:		199099
Exp-run by:	antoine
MFC after:	2 weeks
2015-04-15 09:09:20 +00:00
delphij
e54d940929 When reading in the original file name from gzip header, we read
in PATH_MAX + 1 bytes from the file.  In r281500, strrchr() is
used to strip possible path portion of the file name to mitigate
a possible attack.  Unfortunately, strrchr() expects a buffer
that is NUL-terminated, and since we are processing potentially
untrusted data, we can not assert that be always true.

Solve this by reading in one less byte (now PATH_MAX) and
explicitly terminate the buffer after the read size with NUL.

Reported by:	Coverity
CID:		1264915
X-MFC-with:	281500
MFC after:	13 days
2015-04-15 00:07:21 +00:00
andrew
2fb2ff8b6b Disable truss, gprof, and lint on arm64, they don't build.
Sponsored by:	The FreeBSD Foundation
2015-04-14 10:15:58 +00:00
eadler
3cc5d845f2 ipcs: fix builds that use gcc
gcc gets annoyed by duplicate declarations

Reported by:	sbruno
Reviewed by:	sbruno
2015-04-14 04:52:52 +00:00
eadler
fef0a473a6 ipcs: fix warnings (WARNS=1 -> WARNS=6)
- fix shadow warnings
	- change type from off_t to size_t which is more correct and avoids
	  signed/unsigned compare
	- use new initializer format to avoid "missing values" warning

Reviewed by:	jhb
2015-04-13 19:58:11 +00:00
delphij
25401a0f56 Sync with NetBSD:
- Mention xz(1) in gzip(1).
 - Strip away path from header name when decompressing.

MFC after:	2 weeks
2015-04-13 19:46:30 +00:00
trasz
d5617cbc74 Add libxo(3) support to iscsictl(8).
PR:		198396
Submitted by:	Marie Helene Kvello-Aune <marieheleneka at gmail.com>
MFC after:	1 month
Sponsored by:	The FreeBSD Foundation
2015-04-12 09:36:50 +00:00
bapt
c7f08411e0 Update nvi to 2.1.3 which fixes the data corruption when locale conversion
failed
2015-04-10 17:50:28 +00:00
bapt
b0266e10a7 Remove uneeded link to libkiconv 2015-04-09 21:30:11 +00:00