| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
from a client, accept all printable characters as being part
of the program name, except ':' and '[', because each is a
possible delimiter.
|
|
|
|
|
|
|
|
|
|
| |
do not stop copying it into a buffer when encountering a
non-alphanumerical character. Only stop at unprintable characters.
This makes syslogd work correctly with executables like `interp.bin',
`httpd_old', etc.
PR: misc/40941
MFC after: 1 week
|
|
|
|
| |
MFC after: 1 week
|
| |
|
| |
|
|
|
|
|
| |
instead of hand-rolled equivalent. Add curly braces for symmetry
around else.
|
| |
|
|
|
|
|
| |
don't initialize globals to 0, some reindentation of declarations, some
comments added or reworded.
|
| |
|
|
|
|
|
|
|
| |
Reviewed by: ru
Approved by: ru
Obtained from: OpenBSD
MFC after: 1 week
|
|
|
|
|
|
|
|
| |
PR: misc/34839
Reviewed by: ru
Approved by: ru
Obtained from: OpenBSD
MFC after: 2 weeks
|
| |
|
|
|
|
|
| |
I don't know about anyone else, but the compiler was always aborting
on this stupid warning, and has been doing so for weeks.
|
|
|
|
|
|
| |
is a pipe to another program, or, if specified twice, in all cases.
PR: bin/32420
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
with the old behavior available via the -o option (it might still be
useful if one has many kernels and cares which messages came from
which). If the boot file is not used as the prefix, it is still
logged once at startup.
This change is prompted by the fact that the boot file is now much
longer ("/boot/kernel/kernel" vs. "/kernel"), which significanlty
bloats the syslogd output.
Reviewed by: peter
|
|
|
|
|
|
|
|
| |
netmask.
PR: 31947
Submitted by: Aaron Scarisbrick <aaronsca@hotmail.com>
MFC after: 1 week
|
|
|
|
|
| |
Submitted by: Philippe Charnier <charnier@xp11.frmug.org>
MFC after: 2 weeks
|
|
|
|
|
|
|
| |
Without this call, the hostname check would in some cases yield false
positives.
Pointed out by: ru
|
|
|
|
|
|
|
|
|
|
| |
than really solve it. This approach (inspired by Ruslan's patch) solves
the real problem by stripping the local domain off the host name in the
config line structure.
Also mark a bunch of code sections that either do not check the return value
of a strdup(), malloc() or calloc() call, or do not properly handle a NULL
return.
|
|
|
|
|
|
|
|
| |
1.64, i.e. July of last year. Also fix a minor style bug in the same code.
PR: bin/28634
Pointy hat to: dwmalone
Pointed out by: my buggy DSL router's remote logging facility
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
__unused, and change local variables named `sin' (struct
sockaddr_in) to `sin4'. (`sin' conflicts with the definition of
sin(3), which gcc assumes to be defined even if math.h isn't
included (it's a builtin). This is probably a bug in gcc.)
- Apply WARNS=1. WARNS=2 was not used because this program assigns
string literals to (struct iovec).iov_base for writing, and the only
clean way to silence -Wwrite-strings in that case would be to
strdup() and consequently free() those literals, which I considered
too disruptive.
Reviewed by: bde (partially)
|
| |
|
|
|
|
|
|
|
| |
bind to. This is useful for hosts running jails that need syslog to
maintain an open socket to log to a remote host.
Reviewed by: sheldonh
|
|
|
|
|
|
|
|
| |
Fix some string buffer operations.
Based on: OpenBSD
Reviewed by: audit
MFC after: 2 weeks
|
|
|
|
|
| |
Approved by: ru
MFC after: 2 days
|
|
|
|
|
|
|
|
|
|
|
| |
the system on which it is running. The hostname is reloaded when
'HUPped' and a log message generated to note a change (before anyone
points it out, this is not an added security feature).
PR: bin/24444
Reviewed by: freebsd-audit
Approved by: ru
MFC after: 2 weeks
|
| |
|
|
|
|
| |
MFC after: 2 weeks
|
| |
|
|
|
|
|
| |
These are not perfectly in agreement with each other style-wise, but they
are orders of orders of magnitude more consistent style-wise than before.
|
| |
|
|
|
|
|
|
|
|
| |
- Lose any stray host bits that a user may have entered when providing
a network number and netmask to the `-a' option for IPv6. This is
corresponding to 1.79 that is for IPv4 only.
MFC after: 1 week
|
|
|
|
|
|
|
|
| |
before it will start logging to them.
PR: 27088
Approved by: des
MFC after: 10 days
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
a network number and netmask to the '-a' option.
Approved by: ru
MFC after: 1 week
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
PR: 25784
Submitted by: Jon Villarreal <jonv@ivmg.net>
Reviewed by: iedowse
|
| |
|
| |
|
|
|
|
| |
- MAN[1-9] -> MAN.
|
| |
|
| |
|
|
|
|
|
|
| |
is that LOG_FAC doesn't do quite what you think it does.
PR: 24704
|