| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
PR: docs/171624
Submitted by: bdrewery
Approved by: gabor
MFC after: 3 days
|
|
|
|
|
|
|
|
|
|
| |
The index() and rindex() functions were marked LEGACY in the 2001
revision of POSIX and were subsequently removed from the 2008 revision.
The strchr() and strrchr() functions are part of the C standard.
This makes the source code a lot more consistent, as most of these C
files also call into other str*() routines. In fact, about a dozen
already perform strchr() calls.
|
|
|
|
|
|
|
| |
While they will not fail in normal circumstances, better safe than
sorry.
MFC after: 1 week
|
|
|
|
| |
I removed utmp and its manpage, but not other manpages referring to it.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
I am not planning on providing a mechanism tot stat() the database files
directly. The disadvantage of this, is that rwhod will now be a little
bit more heavy than it used to be. It normally used to fstat() the file
descriptor to see whether the file had changed, but this is now
impossible to implement, meaning we have to parse the entire utmp file
each 180 seconds.
This is probably not an issue on modern 16-way servers, but if it turns
out to be a problem, we'll think of something.
|
|
|
|
|
|
| |
Submitted by: Liam J. Foy <liamfoy@dragonflybsd.org>
Approved by: mdodd (in-lieu of mentor who is away)
MFC after: 1 week
|
|
|
|
| |
socklen_t * argument.
|
| |
|
| |
|
|
|
|
| |
(with permission of addtional copyright holders where appropriate)
|
| |
|
| |
|
| |
|
|
|
|
|
| |
use port/proto to represent services (not proto/port).
add FBSDID
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
PR: docs/37757
Submitted by: Hiten Pandya <hiten@uk.FreeBSD.org>
|
|
|
|
|
|
|
|
| |
time_to_xxx() and xxx_to_time() functions. e.g. _time_to_xxx()
instead of time_to_xxx(), to make it more obvious that these are
stopgap functions & placemarkers and not meant to create a defacto
standard. They will eventually be replaced when a real standard
comes out of committee.
|
|
|
|
| |
a network and storage.
|
| |
|
| |
|
|
|
|
| |
- MAN[1-9] -> MAN.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
header before trying to process them. Without this sanity check,
rwhod can attempt to byte-swap all of memory when a short packet
is received, and so dies with a SIGBUS.
While I'm here, change two other syslog messages to be more
informative: use dotted quad rather than hex notation for IP
addresses, and include the source IP in the 'bad from port' message.
PR: bin/14844
Reviewed by: dwmalone
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
track.
The Id line is normally at the bottom of the main comment block in the
man page, separated from the rest of the manpage by an empty comment,
like so;
.\" $Id$
.\"
If the immediately preceding comment is a @(#) format ID marker than the
the $Id$ will line up underneath it with no intervening blank lines.
Otherwise, an additional blank line is inserted.
Approved by: bde
|
| |
|
|
|
|
|
| |
Mostly submitted by: Stefan Zehl <sec@42.org>
PR: 12216
|
|
|
|
|
|
|
| |
information, but still allows you to monitor other machines.
PR: 9301
Submitted by: Matthew Fuller <fullermd@futuresouth.com>
|
|
|
|
| |
from incorrect source ports.
|
|
|
|
|
| |
PR: bin/6396
Submitted by: Ruslan Ermilov <ru@ucb.crimea.ua>
|
|
|
|
|
|
| |
Use syslog instead of fprintf when being a daemon.
Change sprintf to snprintf obtained from OpenBSD.
Obtained from: OpenBSD
|
| |
|
|
|
|
|
|
|
|
| |
Off by one in verify allowed one to march one byte off the end of
wd.wd_hostname if wd.wd_hostname had no NUL characters in it.
strncpy of myname into mywd used the source buffer's length, rather
than the dest.
|
|
|
|
|
|
|
|
|
|
| |
we actually look for the *group* and not the user's gid. user daemon
has traditionally been group 31 (guest).
Also clear out the groups vector so that it doesn't inherit the groups
of the invoking user (ever run rwhod by hand before?) Unfortunately, we
can't empty the supplemental groups list because the !&@^#! egid is stored
in there! :-(
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
page. I tried all three modes (rwhod, rwhod -m, rwhod -m 32) on a machine
with 2 ethernet interfaces and they all worked.
Submitted by: Bill Fenner <fenner@parc.xerox.com>
|
|
|
|
| |
(and rename a few in the process).
|
| |
|
|
|