perry
8b0f9554ff
convert __attribute__s to applicable cdefs.h macros
2007-12-15 19:44:37 +00:00
tls
4147a3c54a
Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
...
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry. RedHat has
evidently built all "core system packages" with this option for some time.
This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.
This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros. Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.
Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default. Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.
2007-05-28 12:06:17 +00:00
mrg
c48f394145
assign to wd.wd_recvtime rather than casting a pointer to it
...
to a time_t pointer to call time(3).
2006-05-11 08:40:28 +00:00
christos
18b5fc9e5c
Off by one in copying stuff to struct whoent. Found by Liam Foy.
2005-10-02 16:49:46 +00:00
wiz
6438e0bfa7
Sync usage with man page.
2005-09-12 18:34:37 +00:00
wiz
4b44cc9527
New sentence, new line.
...
Add -u to SYNOPSIS. Fix some typos.
Use more markup. Bump date for -u.
2005-09-12 18:33:56 +00:00
tsarna
04414a373b
Add -u option: rwhod will drop privledges and become the given user.
...
reviewed by jwise
2005-09-12 16:13:13 +00:00
wiz
b94cb50cae
Fix argument name, and move Pp where it belongs. From YOMURA Masanori in private mail.
2005-09-11 23:45:04 +00:00
christos
ef6897a3a6
Add "by default" (Liam Foy)
2005-08-09 23:27:31 +00:00
christos
cb1d68978b
Patch from Liam J. Foy:
...
- cleanup sendto code.
- fix usage.
2005-07-05 02:46:36 +00:00
peter
e0de99f875
Remove trailing space, fix a Xref.
2005-07-01 16:18:46 +00:00
christos
6b7013d1ad
Change g flag to i as in the PR.
...
Don't allow interval to be set to > 11 minutes.
Rephrase option blurb.
2005-07-01 15:31:18 +00:00
christos
c36c99ef66
PR/30648: Liam J. Foy: rwhod patch to reduce time interval between broadcasts
2005-07-01 13:07:21 +00:00
junyoung
632e7ed58f
Remove a unnecessary semicolon and trailing spaces.
2005-06-27 12:07:46 +00:00
peter
c14c7a6bb6
- Use the timer* macros from sys/time.h, no need to invent a new time add
...
function if it already exists.
- Improve a few function/variable names and use EXIT_FAILURE.
2005-06-24 13:47:30 +00:00
christos
a8b658e375
Initialize events not revents. Noted by Peter Postma. The timer changes he
...
can make himself :-)
2005-06-24 13:24:23 +00:00
christos
f17eeccada
Fixes from Liam J. Foy to use poll, and proper signals. (from OpenBSD)
...
While there, ansify, and fix const abuse.
2005-06-24 13:22:09 +00:00
dsl
9122339b9f
Add (unsigned char) cast to ctype functions
2004-10-30 15:39:39 +00:00
agc
326b2259b7
Move UCB-licensed code from 4-clause to 3-clause licence.
...
Patches provided by Joel Baker in PR 22366, verified by myself.
2003-08-07 11:25:11 +00:00
itojun
d9f2774c1e
use bounded string op
2003-07-13 12:08:28 +00:00
christos
50455a9139
PR/20318: Johnny Billquist: rwhod does not compile with -DDEBUG
2003-02-12 17:49:35 +00:00
lukem
17d72c8a6b
use NETBSDSRCDIR as appropriate
2002-09-18 03:54:26 +00:00
christos
b166b5b47b
use utmpx.
2002-08-02 02:38:15 +00:00
wiz
ddac63620b
Sort sections and SEE ALSO.
2002-02-02 01:47:36 +00:00
wiz
a2d753e3ef
Whitespace nits.
2002-01-19 11:44:57 +00:00
is
d8302e2d73
More format string cleanups by sommerfeld.
2000-10-11 20:23:46 +00:00
itojun
c8ebe62e8b
avoid memory leak on realloc() error.
1999-12-30 09:10:28 +00:00
mjl
f214fa323a
From FreeBSD bin/14844 (slightly modified): Due to signed calculations
...
with the packet size, a short packet would trigger an infinite loop
on little endian machines.
1999-11-15 15:59:24 +00:00
thorpej
bcd4659148
Use pidfile(3).
1999-06-06 03:27:35 +00:00
garbled
d1407362ba
More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
...
so we shouldn't override it with versions in the manpages. Many more to
come.
1999-03-22 18:43:46 +00:00
mrg
31283e2cd0
fix error in previous pointed out by bad. minor KNFing.
1998-07-08 15:17:57 +00:00
mrg
32f519716b
- use an array MAXHOSTNAMELEN+1 size to hold hostnames
...
- ensure hostname from gethostname() is nul-terminated in all cases
- minor KNF
- use MAXHOSTNAMELEN over various other values/defines
- be safe will buffers that hold hostnames
1998-07-06 06:56:06 +00:00
msaitoh
e167016fdb
The service name of the rwhod(8) is not "rwho" but "who".
1998-06-04 13:31:40 +00:00
lukem
e5d6d67c63
deprecate register, use warn/err
1997-10-18 11:37:10 +00:00
lukem
149f1867d1
rcsid fascism
1997-10-18 04:36:50 +00:00
lukem
8d79db1093
WARNSify
1997-10-17 13:13:40 +00:00
kleink
66105c37fc
Lseek(2) usage cleanup: the use of L_SET/L_INCR/L_XTND is deprecated,
...
use SEEK_SET/SEEK_CUR/SEEK_END instead.
1997-08-25 19:31:43 +00:00
mikel
05938835d7
gethostname(3) is no longer a syscall
1997-07-14 01:43:49 +00:00
mikel
7fedc67b9e
xref gethostname(3) not gethostname(2), RCSid police
1997-07-14 01:42:20 +00:00
cgd
dd7fbd1461
doesn't need libkvm any more
1997-03-08 22:21:55 +00:00
cgd
1e9c4131dc
update structure definitions for 64-bit safety (already done in the relevant
...
header files), and kill the note about checking /netbsd's nlist, since that
is no longer done (since the kernel namelist isn't actually used for
anything).
1997-03-08 22:20:21 +00:00
explorer
d3a4eeb1fe
Fix some potential buffer overflow problems.
...
From David Holland <dholland@hcs.harvard.edu>
1996-09-07 21:05:37 +00:00
cgd
d8806814a6
specify man pages the new way.
1994-12-22 11:32:57 +00:00
jtc
9afcf17bec
sync with 44lite
1994-05-29 02:53:21 +00:00
andrew
b55bc39b4e
rwhod wasn't too happy after the off_t change - its lseek() to check the
...
boottime was broken. Replaced this code with kvm_nlist()/kvm_read() to be
more efficient.
1994-04-06 03:01:46 +00:00
cgd
7a6e889600
kill bad casts
1994-03-30 02:28:43 +00:00
cgd
20137a28c8
kill extern'd lseek()
1994-03-28 07:08:56 +00:00
jtc
281c9594a0
vmunix -> netbsd
1994-02-03 17:41:21 +00:00
cgd
ecd53521f1
no longer need lib hackery
1994-01-28 05:13:28 +00:00
cgd
8970fe6df6
hack to make getloadavg() link properly
1994-01-28 00:58:41 +00:00