#
02ccaf6b |
| 08-Nov-2022 |
uwe <uwe@NetBSD.org> |
syslogd: make -d accept an optional argument
Make it possible to specify the debug message categories with an optional numeric argument. You'll have to read the fine source to find out what they ar
syslogd: make -d accept an optional argument
Make it possible to specify the debug message categories with an optional numeric argument. You'll have to read the fine source to find out what they are. The number can be specified as the usual decimal, hex (0x), or octal (0) literal with an optional ~negation.
Since syslogd uses getopt(3), not getopt_long(3), do a bit of gymnastics so that both -d42 and -d 42 are accepted (I'm not inventing long names for all the existing options just to support an optional argument to -d).
-d without an argument still uses the old D_DEFAULT selection just in case someone really relies on that. You can disable all debug messages with -d0 but still get syslogd not daemonized.
show more ...
|
#
d6af6388 |
| 20-May-2022 |
andvar <andvar@NetBSD.org> |
s/auxillary/auxiliary/ in comments.
|
#
c7324206 |
| 27-Nov-2021 |
rillig <rillig@NetBSD.org> |
usr.sbin: remove unnecessary CONSTCOND, lint no longer needs it
Since 2021-01-31, lint no longer requires a CONSTCOND comment in a do-while-0 statement since this is a common code pattern, especiall
usr.sbin: remove unnecessary CONSTCOND, lint no longer needs it
Since 2021-01-31, lint no longer requires a CONSTCOND comment in a do-while-0 statement since this is a common code pattern, especially in statement-like macros.
sed -i -E 's,} while \(/\* ?CONSTCOND ?\*/ ?0\),} while (0),' */*.[ch]
show more ...
|
#
fbcb304c |
| 13-Aug-2021 |
andvar <andvar@NetBSD.org> |
s/bacause/because/
|
#
dae65d33 |
| 08-Nov-2020 |
dholland <dholland@NetBSD.org> |
syslogd: in die(), don't call die() again recursively.
Particularly not for something as immaterial as close failing.
PR 55795
|
#
48b9f4c2 |
| 07-Nov-2020 |
christos <christos@NetBSD.org> |
make the buffer fit any 32 bit number.
|
#
61a94e54 |
| 07-Nov-2020 |
christos <christos@NetBSD.org> |
PR/55794: Jan Schaumann: Eliminate unchecked malloc
|
#
15beba29 |
| 29-Sep-2020 |
gson <gson@NetBSD.org> |
When reporting an error before daemonizing, prefix the error message with the program name.
|
#
4702119d |
| 26-Dec-2019 |
msaitoh <msaitoh@NetBSD.org> |
s/lenght/length/
|
#
78876854 |
| 03-Feb-2019 |
mrg <mrg@NetBSD.org> |
- add or adjust /* FALLTHROUGH */ where appropriate - add __unreachable() after functions that can return but won't in this case, and thus can't be marked __dead easily
|
#
e9eb3c34 |
| 05-Nov-2018 |
martin <martin@NetBSD.org> |
Revert previous - local merge mishap
|
#
a75fcef8 |
| 05-Nov-2018 |
wiz <wiz@NetBSD.org> |
Sort options.
|
#
9ee00fc7 |
| 05-Nov-2018 |
martin <martin@NetBSD.org> |
Make it compilable with gcc
|
#
601a3239 |
| 04-Nov-2018 |
roy <roy@NetBSD.org> |
syslogd: allow the reporting of buffer overflows to be disabled.
This generally isn't a good thing, nothing should be discard silently. However, for systems that don't want big syslogd buffers or ar
syslogd: allow the reporting of buffer overflows to be disabled.
This generally isn't a good thing, nothing should be discard silently. However, for systems that don't want big syslogd buffers or are too slow to log effectively this reporting can now be disabled.
show more ...
|
#
8d7422b8 |
| 04-Nov-2018 |
roy <roy@NetBSD.org> |
syslogd: allow the receiving buffer size to be set.
This allows the admin to try and avoid buffer overflow when a log of logging appears in bursts.
|
#
34062f77 |
| 06-May-2018 |
christos <christos@NetBSD.org> |
grow AF_UNIX receive buffer size
|
#
a829bc80 |
| 10-Sep-2017 |
ginsbach <ginsbach@NetBSD.org> |
Use looked up remote host for remote message without a hostname
An incoming remote message may not necessarily have a hostname between the timestamp and the message. The the source of the remote sen
Use looked up remote host for remote message without a hostname
An incoming remote message may not necessarily have a hostname between the timestamp and the message. The the source of the remote sender is already looked up so use that hostname/IP address rather than the local hostname.
XXX: pullup-8 XXX: pullup-7 XXX: pullup-6
show more ...
|
#
eeec0e4e |
| 11-Jun-2016 |
christos <christos@NetBSD.org> |
PR/51234: Onno van der Linden: syslogd sometimes incorrectly handles iso to bsd time conversion
|
#
cff3ad81 |
| 05-Sep-2015 |
dholland <dholland@NetBSD.org> |
tidy/fix printing of paths from sockaddr_un
|
#
cd381bf3 |
| 10-Feb-2015 |
christos <christos@NetBSD.org> |
- always set *to_buf to a timestamp, even if there was none reported/parseable (Frank Kardel). - merge the timestamp copying code to one place. - factor out the debugging printf function.
|
#
8295a6f4 |
| 18-Aug-2014 |
jnemeth <jnemeth@NetBSD.org> |
- when checking hostname of incoming remote messages, fallback to checking remote host if the message doesn't contain a hostname - don't truncate IP addresses when reading syslogd.conf
|
#
3e44bd72 |
| 27-Nov-2013 |
christos <christos@NetBSD.org> |
CID 1132759: Abort on dehumanize_number error on constant built-in string.
|
#
d87f7e39 |
| 11-Nov-2013 |
christos <christos@NetBSD.org> |
CID 1128379: Fix TOCTOU, always open the file first with non-blocking I/O, do that stat later and leave the file as non-blocking because it does not make a difference for plain files.
|
#
6731d8b2 |
| 09-Nov-2013 |
christos <christos@NetBSD.org> |
add support for outputting to FIFO's (Anthony Mallet)
|
#
efb89846 |
| 09-Nov-2013 |
christos <christos@NetBSD.org> |
fix two bugs related to queues (Anthony Mallet) - the default values are in humanized number form so strtol does not work - fix reversed size tests
|