History log of /src/usr.sbin/rwhod |
Revision | Date | Author | Comments |
1.16 | 03-Jun-2023 |
lukem | bsd.own.mk: rename GCC_NO_* to CC_WNO_*
Rename compiler-warning-disable variables from GCC_NO_warning to CC_WNO_warning where warning is the full warning name as used by the compiler.
GCC_NO_IMPLICIT_FALLTHRU is CC_WNO_IMPLICIT_FALLTHROUGH
Using the convention CC_compilerflag, where compilerflag is based on the full compiler flag name.
|
1.15 | 13-Oct-2019 |
mrg | introduce some common variables for use in GCC warning disables:
GCC_NO_FORMAT_TRUNCATION -Wno-format-truncation (GCC 7/8) GCC_NO_STRINGOP_TRUNCATION -Wno-stringop-truncation (GCC 8) GCC_NO_STRINGOP_OVERFLOW -Wno-stringop-overflow (GCC 8) GCC_NO_CAST_FUNCTION_TYPE -Wno-cast-function-type (GCC 8)
use these to turn off warnings for most GCC-8 complaints. many of these are false positives, most of the real bugs are already commited, or are yet to come.
we plan to introduce versions of (some?) of these that use the "-Wno-error=" form, which still displays the warnings but does not make it an error, and all of the above will be re-considered as either being "fix me" (warning still displayed) or "warning is wrong."
|
1.14 | 22-Apr-2009 |
lukem | branches: 1.14.46; Enable WARNS=4 by default, except for: cpuctl dumplfs hprop ipf iprop-log kadmin kcm kdc kdigest kimpersonate kstash ktutil makefs ndbootd ntp pppd quot racoon racoonctl rtadvd sntp sup tcpdchk tcpdmatch tcpdump traceroute traceroute6 user veriexecgen wsmoused zic (Mostly third-party applications)
|
1.13 | 28-May-2007 |
tls | branches: 1.13.20; 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.
|
1.12 | 24-Jun-2005 |
christos | Fixes from Liam J. Foy to use poll, and proper signals. (from OpenBSD) While there, ansify, and fix const abuse.
|
1.11 | 18-Sep-2002 |
lukem | use NETBSDSRCDIR as appropriate
|
1.10 | 02-Aug-2002 |
christos | use utmpx.
|
1.9 | 06-Jun-1999 |
thorpej | Use pidfile(3).
|
1.8 | 18-Oct-1997 |
lukem | rcsid fascism
|
1.7 | 08-Mar-1997 |
cgd | doesn't need libkvm any more
|
1.6 | 22-Dec-1994 |
cgd | specify man pages the new way.
|
1.5 | 06-Apr-1994 |
andrew | 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.
|
1.4 | 28-Jan-1994 |
cgd | no longer need lib hackery
|
1.3 | 28-Jan-1994 |
cgd | hack to make getloadavg() link properly
|
1.2 | 30-Jul-1993 |
mycroft | Add RCS identifiers.
|
1.1 | 21-Mar-1993 |
cgd | branches: 1.1.1; after 0.2.2 "stable" patches applied
|
1.1.1.1 | 06-Jun-1993 |
mrg | 4.4BSD-Lite2
|
1.13.20.1 | 13-May-2009 |
jym | Sync with HEAD.
Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
|
1.14.46.1 | 13-Apr-2020 |
martin | Mostly merge changes from HEAD upto 20200411
|
1.20 | 12-Sep-2005 |
wiz | New sentence, new line. Add -u to SYNOPSIS. Fix some typos. Use more markup. Bump date for -u.
|
1.19 | 12-Sep-2005 |
tsarna | Add -u option: rwhod will drop privledges and become the given user.
reviewed by jwise
|
1.18 | 11-Sep-2005 |
wiz | Fix argument name, and move Pp where it belongs. From YOMURA Masanori in private mail.
|
1.17 | 09-Aug-2005 |
christos | Add "by default" (Liam Foy)
|
1.16 | 01-Jul-2005 |
peter | Remove trailing space, fix a Xref.
|
1.15 | 01-Jul-2005 |
christos | Change g flag to i as in the PR. Don't allow interval to be set to > 11 minutes. Rephrase option blurb.
|
1.14 | 01-Jul-2005 |
christos | PR/30648: Liam J. Foy: rwhod patch to reduce time interval between broadcasts
|
1.13 | 07-Aug-2003 |
agc | Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22366, verified by myself.
|
1.12 | 02-Feb-2002 |
wiz | Sort sections and SEE ALSO.
|
1.11 | 19-Jan-2002 |
wiz | Whitespace nits.
|
1.10 | 22-Mar-1999 |
garbled | 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.
|
1.9 | 04-Jun-1998 |
msaitoh | The service name of the rwhod(8) is not "rwho" but "who".
|
1.8 | 17-Oct-1997 |
lukem | WARNSify
|
1.7 | 14-Jul-1997 |
mikel | gethostname(3) is no longer a syscall
|
1.6 | 14-Jul-1997 |
mikel | xref gethostname(3) not gethostname(2), RCSid police
|
1.5 | 08-Mar-1997 |
cgd | 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).
|
1.4 | 29-May-1994 |
jtc | sync with 44lite
|
1.3 | 03-Feb-1994 |
jtc | vmunix -> netbsd
|
1.2 | 01-Aug-1993 |
mycroft | Add RCS indentifiers.
|
1.1 | 21-Mar-1993 |
cgd | branches: 1.1.1; after 0.2.2 "stable" patches applied
|
1.1.1.1 | 29-May-1994 |
jtc | 4.4lite rwhod, to fix bug #247
|
1.41 | 30-Oct-2018 |
kre | sysctl(KERN_BOPOTIME) started returning a struct timespec in 2009. Update to match.... We're slow but we get there eventually!
NFC for any of these programs, struct timeval and struct timespec are the same size, and only the tv_sec field of boottime is used, and that's unchanged.
|
1.40 | 04-Nov-2012 |
christos | branches: 1.40.28; 1.40.30; include <pwd.h>
|
1.39 | 31-Aug-2011 |
joerg | branches: 1.39.2; 1.39.8; Use __dead
|
1.38 | 18-Apr-2009 |
lukem | Fix -Wsign-compare issue
|
1.37 | 21-Jul-2008 |
lukem | branches: 1.37.6; Remove the \n and tabs from the __COPYRIGHT() strings. Tweak to use a consistent format.
|
1.36 | 13-Jul-2008 |
dholland | Clarify how one is supposed to use the pointers returned by getutentries() (the utmpentry.c code), specifically with respect to who owns them and when to free them. Now they're owned by utmpentry.c, only. Abolish the freeutentries() function, which was the wrong abstraction; add instead endutentries(), which flushes out the internally managed memory.
Update callers as necessary. Some (e.g. talkd) had been leaking memory; others (e.g. syslogd) had been accidentally freeing and reloading utmp more often than necessary. There are a couple untidy bits in users and rwhod that someone should look after sometime, maybe.
Fixes PR bin/35131, which was about talkd's memory leak.
|
1.35 | 15-Dec-2007 |
perry | branches: 1.35.6; convert __attribute__s to applicable cdefs.h macros
|
1.34 | 11-May-2006 |
mrg | branches: 1.34.10; assign to wd.wd_recvtime rather than casting a pointer to it to a time_t pointer to call time(3).
|
1.33 | 02-Oct-2005 |
christos | Off by one in copying stuff to struct whoent. Found by Liam Foy.
|
1.32 | 12-Sep-2005 |
wiz | Sync usage with man page.
|
1.31 | 12-Sep-2005 |
tsarna | Add -u option: rwhod will drop privledges and become the given user.
reviewed by jwise
|
1.30 | 05-Jul-2005 |
christos | Patch from Liam J. Foy: - cleanup sendto code. - fix usage.
|
1.29 | 01-Jul-2005 |
christos | Change g flag to i as in the PR. Don't allow interval to be set to > 11 minutes. Rephrase option blurb.
|
1.28 | 01-Jul-2005 |
christos | PR/30648: Liam J. Foy: rwhod patch to reduce time interval between broadcasts
|
1.27 | 27-Jun-2005 |
junyoung | Remove a unnecessary semicolon and trailing spaces.
|
1.26 | 24-Jun-2005 |
peter | - 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.
|
1.25 | 24-Jun-2005 |
christos | Initialize events not revents. Noted by Peter Postma. The timer changes he can make himself :-)
|
1.24 | 24-Jun-2005 |
christos | Fixes from Liam J. Foy to use poll, and proper signals. (from OpenBSD) While there, ansify, and fix const abuse.
|
1.23 | 30-Oct-2004 |
dsl | Add (unsigned char) cast to ctype functions
|
1.22 | 07-Aug-2003 |
agc | Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22366, verified by myself.
|
1.21 | 13-Jul-2003 |
itojun | use bounded string op
|
1.20 | 12-Feb-2003 |
christos | PR/20318: Johnny Billquist: rwhod does not compile with -DDEBUG
|
1.19 | 02-Aug-2002 |
christos | use utmpx.
|
1.18 | 11-Oct-2000 |
is | More format string cleanups by sommerfeld.
|
1.17 | 30-Dec-1999 |
itojun | branches: 1.17.4; avoid memory leak on realloc() error.
|
1.16 | 15-Nov-1999 |
mjl | 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.
|
1.15 | 06-Jun-1999 |
thorpej | branches: 1.15.4; Use pidfile(3).
|
1.14 | 08-Jul-1998 |
mrg | branches: 1.14.2; fix error in previous pointed out by bad. minor KNFing.
|
1.13 | 06-Jul-1998 |
mrg | - 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
|
1.12 | 18-Oct-1997 |
lukem | deprecate register, use warn/err
|
1.11 | 17-Oct-1997 |
lukem | WARNSify
|
1.10 | 25-Aug-1997 |
kleink | Lseek(2) usage cleanup: the use of L_SET/L_INCR/L_XTND is deprecated, use SEEK_SET/SEEK_CUR/SEEK_END instead.
|
1.9 | 07-Sep-1996 |
explorer | Fix some potential buffer overflow problems. From David Holland <dholland@hcs.harvard.edu>
|
1.8 | 29-May-1994 |
jtc | sync with 44lite
|
1.7 | 06-Apr-1994 |
andrew | 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.
|
1.6 | 30-Mar-1994 |
cgd | kill bad casts
|
1.5 | 28-Mar-1994 |
cgd | kill extern'd lseek()
|
1.4 | 15-Dec-1993 |
mycroft | From: mrm@sceard.com (M.R.Murphy) Fix memory leak.
|
1.3 | 01-Aug-1993 |
mycroft | Add RCS identifiers.
|
1.2 | 18-Apr-1993 |
mycroft | Cleanup for GCC 2.
|
1.1 | 21-Mar-1993 |
cgd | branches: 1.1.1; after 0.2.2 "stable" patches applied
|
1.1.1.1 | 29-May-1994 |
jtc | 4.4lite rwhod, to fix bug #247
|
1.14.2.3 | 19-Oct-2000 |
he | Pull up revision 1.18 (requested by he): Format string cleanup.
|
1.14.2.2 | 08-Jan-2000 |
he | Pull up revision 1.17 (requested by itojun): Avoid memory leak on realloc() failure.
|
1.14.2.1 | 20-Nov-1999 |
he | Pull up revision 1.16 (requested by mjl): Fix possible Denial-of-Service attack triggered by sending short packets to rwhod.
|
1.15.4.1 | 27-Dec-1999 |
wrstuden | Pull up to last week's -current.
|
1.17.4.1 | 17-Oct-2000 |
tv | Pullup usr.sbin string format fixes [is]. See "cvs log" for explicit revision numbers per file, from sommerfeld.
|
1.34.10.1 | 09-Jan-2008 |
matt | sync with HEAD
|
1.35.6.1 | 18-Sep-2008 |
wrstuden | Sync with wrstuden-revivesa-base-2.
|
1.37.6.1 | 13-May-2009 |
jym | Sync with HEAD.
Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
|
1.39.8.1 | 20-Nov-2012 |
tls | Resync to 2012-11-19 00:00:00 UTC
|
1.39.2.1 | 16-Jan-2013 |
yamt | sync with (a bit old) head
|
1.40.30.1 | 10-Jun-2019 |
christos | Sync with HEAD
|
1.40.28.1 | 26-Nov-2018 |
pgoyette | Sync with HEAD, resolve a couple of conflicts
|