NetBSD/usr.sbin
christos b3ed889133 PR/40043: Geoff C. Wing: syslogd timestamping and protocol parsing deficiencies
Syslogd does not properly handle:

1) the ADDDATE flag which is set with -T invocation and when messages
   come from the kernel.  Other cases where it is set it is ignored
   as timestamping is always done (e.g. logmsg_async())

2) the variable found_ts in check_timestamp().  It would determine
   whether or not the message had a (possibly valid) timestamp, set
   found_ts to true, then ignore that in most cases.  If we can't find
   a timestamp return.

3) messages without a parsable timestamp should get one when outputting
   the BSD syslog format so that a syslog-protocol timestamp isn't
   injected (chopped off with BSD syslog length) giving something like:
    "2008-11-27T15:0 cisco -: 1790:"
     ^ time might have been 2008-11-27T15:02:35.296497+11:00

4) syslog protocol version checking only checked for a leading numeral
   one (1) then skipped two places (presuming a space).  Messages sent
   from some sources (e.g. my cisco) may be
     "1795: Nov 27 04:12:52: %LINEPROTO-5-..."
   which would be chopped to
       "95: Nov 27 04:12:52: %LINEPROTO-5-..."
2008-11-27 20:37:21 +00:00
..
ac
accton Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-21 13:36:57 +00:00
acpitools Include aml/aml_region.h after aml/aml_common.h to avoid redefinition errors. 2008-08-29 00:50:01 +00:00
altq Add support for source address hashhing in ALTQs WFQ. This allows to 2008-09-11 17:58:59 +00:00
apm Mention that the program is only installed on supported platforms. 2008-09-25 22:44:51 +00:00
apmd Mention that the program is only installed on supported platforms. 2008-09-25 22:44:51 +00:00
arp Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-21 13:36:57 +00:00
bad144 Mention that the program is only installed on supported platforms. 2008-09-25 22:44:51 +00:00
bind Wrap compiler-specific flags with HAVE_GCC and HAVE_PCC as necessary. Add a few flags for PCC. 2008-08-29 00:02:21 +00:00
bootp Wrap compiler-specific flags with HAVE_GCC and HAVE_PCC as necessary. Add a few flags for PCC. 2008-08-29 00:02:21 +00:00
btattach Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-21 13:36:57 +00:00
btconfig Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-21 13:36:57 +00:00
btdevctl Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-21 13:36:57 +00:00
bthcid Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-21 13:36:57 +00:00
btpand no need to use -g and _DIAGNOSTIC 2008-08-18 08:25:32 +00:00
catman WARNS=4 love. 2008-05-02 19:59:19 +00:00
chown Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-21 13:36:57 +00:00
chroot Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-21 13:36:57 +00:00
chrtbl Wrap compiler-specific flags with HAVE_GCC and HAVE_PCC as necessary. Add a few flags for PCC. 2008-08-29 00:02:21 +00:00
cnwctl WARNS=4 love. 2008-05-02 19:59:19 +00:00
cpuctl redo previous: 2008-11-19 20:56:08 +00:00
cron Wrap compiler-specific flags with HAVE_GCC and HAVE_PCC as necessary. Add a few flags for PCC. 2008-08-29 00:02:21 +00:00
dev_mkdb Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-21 13:36:57 +00:00
dhcp Wrap compiler-specific flags with HAVE_GCC and HAVE_PCC as necessary. Add a few flags for PCC. 2008-08-29 00:02:21 +00:00
diskpart Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-21 13:36:57 +00:00
dumpfs Since we're printing loc2 and loc3, make the headings match what we print. 2008-08-07 22:26:14 +00:00
dumplfs Wrap compiler-specific flags with HAVE_GCC and HAVE_PCC as necessary. Add a few flags for PCC. 2008-08-29 00:02:21 +00:00
edquota Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-21 13:36:57 +00:00
eeprom Mention that the program is only installed on supported platforms. 2008-09-25 22:44:51 +00:00
envstat Ported alipm(4) and admtemp(4) from OpenBSD. 2008-10-29 17:26:56 +00:00
eshconfig WARNS=4 love. 2008-05-02 19:59:19 +00:00
etcupdate Output (when verbose) when storing checksum files. 2008-11-08 02:11:54 +00:00
extattrctl
faithd include sys/cdefs.h so that __attribute__ can be fixed later 2007-12-15 16:32:05 +00:00
fssconfig Convert TNF licenses to new 2 clause variant 2008-04-30 13:10:46 +00:00
fusermount Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-21 13:36:57 +00:00
fwctl WARNS=4 love. 2008-05-02 19:59:19 +00:00
gpioctl Staticify fully now. 2008-01-09 16:08:33 +00:00
grfconfig Fix less-than-or-equal to just less-than. 2008-09-27 04:16:15 +00:00
grfinfo Move to standard TNF 2 clause license 2008-05-04 12:59:38 +00:00
gspa Convert TNF licenses to new 2 clause variant 2008-04-30 13:10:46 +00:00
hilinfo
hprop Wrap compiler-specific flags with HAVE_GCC and HAVE_PCC as necessary. Add a few flags for PCC. 2008-08-29 00:02:21 +00:00
ifmcstat
ifwatchd Just ignore a bunch of well-known routing socket messages ifwatchd 2008-05-24 17:45:14 +00:00
inetd Bump date for previous. 2008-08-28 21:39:08 +00:00
installboot Try to improve warning messages when stage2 bootstrap is not found 2008-10-12 16:03:27 +00:00
iopctl Use le16toh() instead of le32toh() on a 16 bit value. Fixes display of 2008-09-17 16:03:28 +00:00
iostat Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-21 13:36:57 +00:00
ipf Use ${TOOL_SED} instead if plain sed in Makefiles. 2008-10-25 22:27:34 +00:00
iprop-log Wrap compiler-specific flags with HAVE_GCC and HAVE_PCC as necessary. Add a few flags for PCC. 2008-08-29 00:02:21 +00:00
ipwctl convert __attribute__s to applicable cdefs.h macros 2007-12-15 19:44:37 +00:00
irdaattach Convert TNF licenses to new 2 clause variant 2008-04-30 13:10:46 +00:00
iscsi -D_FILE_OFFSET_BITS=64 is not needed on NetBSD. 2007-10-26 19:04:21 +00:00
isdn Wrap compiler-specific flags with HAVE_GCC and HAVE_PCC as necessary. Add a few flags for PCC. 2008-08-29 00:02:21 +00:00
iteconfig
iwictl convert __attribute__s to applicable cdefs.h macros 2007-12-15 19:44:37 +00:00
kadmin Add more libraries required by libkrb5 etc. in NOPIC case. 2008-04-10 15:42:06 +00:00
kcm Add more libraries required by libkrb5 etc. in NOPIC case. 2008-04-10 15:42:06 +00:00
kdc Add more libraries required by libkrb5 etc. in NOPIC case. 2008-04-10 15:42:06 +00:00
kdigest Add more libraries required by libkrb5 etc. in NOPIC case. 2008-04-10 15:42:06 +00:00
kgmon Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-21 13:36:57 +00:00
kimpersonate Add more libraries required by libkrb5 etc. in NOPIC case. 2008-04-10 15:42:06 +00:00
kstash Add more libraries required by libkrb5 etc. in NOPIC case. 2008-04-10 15:42:06 +00:00
ktutil Add more libraries required by libkrb5 etc. in NOPIC case. 2008-04-10 15:42:06 +00:00
kvm_mkdb Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-21 13:36:57 +00:00
lastlogin
link Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-21 13:36:57 +00:00
lmcconfig
lockstat Convert TNF licenses to new 2 clause variant 2008-04-30 13:10:46 +00:00
lpr Perform line feed after printing usage line. 2008-10-22 07:59:43 +00:00
lptctl Convert TNF licenses to new 2 clause variant 2008-04-30 13:10:46 +00:00
mailwrapper
makefs Make the allow-multidot option useful. 2008-11-21 10:02:12 +00:00
map-mbone include sys/cdefs.h so that __attribute__ can be fixed later 2007-12-15 16:32:05 +00:00
mdconfig
mdsetimage Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-21 13:36:57 +00:00
memswitch Convert TNF licenses to new 2 clause variant 2008-04-30 13:10:46 +00:00
mld6query Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the 2007-05-28 12:06:17 +00:00
mlxctl Move TNF licenses to 2 clause form 2008-05-02 18:11:04 +00:00
mmcformat Fix typos in the manpage. Thanks for snj for the patch. 2008-11-26 21:04:56 +00:00
mopd Use ${TOOL_SED} instead if plain sed in Makefiles. 2008-10-25 22:27:34 +00:00
mountd No empty structure initialisation. 2008-08-29 00:50:45 +00:00
moused Replace gcc initialisers with c99 initialisers. 2008-07-21 12:44:25 +00:00
mrinfo Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the 2007-05-28 12:06:17 +00:00
mrouted - Clean up warnings / errors. 2008-08-26 17:38:21 +00:00
mscdlabel Wrap compiler-specific flags with HAVE_GCC and HAVE_PCC as necessary. Add a few flags for PCC. 2008-08-29 00:02:21 +00:00
mtrace Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the 2007-05-28 12:06:17 +00:00
mtree ensure mtree_err gets a format string 2008-11-04 23:22:48 +00:00
ndbootd Enable gcc optimization on m68000 (sun2) again with minimum hacks. 2008-04-27 03:06:46 +00:00
ndiscvt ndiscvt is architecture specific. 2008-09-27 04:33:04 +00:00
ndp Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the 2007-05-28 12:06:17 +00:00
netgroup_mkdb convert __attribute__s to applicable cdefs.h macros 2007-12-15 19:44:37 +00:00
nfsd Silly-rename child to worker (no pun intended .. maybe). 2008-11-21 07:48:35 +00:00
ntp resolve ntp 4.2.4p5 import 2008-08-23 09:10:31 +00:00
ofctl Mention that the program is only installed on supported platforms. 2008-09-25 22:44:51 +00:00
paxctl try to handle different byte orders. 2008-08-11 10:58:02 +00:00
pcictl
pf Install /etc/pf.os with 444 permissions. 2008-06-20 17:04:45 +00:00
postinstall Add scan obsolete minor shared libraries in /usr/X11R7/lib. 2008-11-24 20:12:28 +00:00
powerd Note addition of hotkey_button scripts. 2007-12-22 18:40:21 +00:00
pppd remove genmask completely and correctly. 2008-10-25 22:12:20 +00:00
psrset Use "processor set" term to avoid confusion with cpuset(3). 2008-09-23 10:09:56 +00:00
pstat Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-21 13:36:57 +00:00
puffs Dynamically load ext2 support, since the linker can't handle more 2008-11-26 19:41:11 +00:00
pvcsif
pvctxctl
pwd_mkdb Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-21 13:36:57 +00:00
quot Eliminate MFSNAMELEN 2007-07-17 22:00:46 +00:00
quotacheck PR/39719: Edgar Fu: block/inode typo in quotacheck(8) 2008-10-09 14:56:35 +00:00
quotaon Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-21 13:36:57 +00:00
racoon Add more libraries required by libkrb5 etc. in NOPIC case. 2008-04-10 15:42:06 +00:00
racoonctl Make racoonctl build again, sockmisc.c needs -DNOUSE_PRIVSEP in order 2008-03-28 14:37:08 +00:00
rarpd Wrap compiler-specific flags with HAVE_GCC and HAVE_PCC as necessary. Add a few flags for PCC. 2008-08-29 00:02:21 +00:00
rbootd Wrap compiler-specific flags with HAVE_GCC and HAVE_PCC as necessary. Add a few flags for PCC. 2008-08-29 00:02:21 +00:00
rdate Remove unused ctype.h 2007-03-10 01:16:17 +00:00
repquota Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-21 13:36:57 +00:00
rip6query Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the 2007-05-28 12:06:17 +00:00
rmt Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-21 13:36:57 +00:00
route6d #include <stdbool.h> for bool. 2008-01-21 20:46:58 +00:00
rpc.bootparamd Be consistent (like the other rpc* manual pages) and have the 2008-11-08 02:08:39 +00:00
rpc.lockd convert __attribute__s to applicable cdefs.h macros 2007-12-15 19:44:37 +00:00
rpc.pcnfsd Refine previous: can put the main -> mymain thing in the .x file, which is 2008-09-30 06:25:22 +00:00
rpc.statd convert __attribute__s to applicable cdefs.h macros 2007-12-15 19:44:37 +00:00
rpc.yppasswdd This file requires errno.h 2008-02-24 21:10:02 +00:00
rpcbind Xref netconfig(5). Requested by Martin S. Weber in PR bin/39605. 2008-10-19 21:18:22 +00:00
rtadvd Wrap compiler-specific flags with HAVE_GCC and HAVE_PCC as necessary. Add a few flags for PCC. 2008-08-29 00:02:21 +00:00
rtsold Avoid zooming off the end of a malloced region. Makes rtsol{,d} -a work. 2008-06-23 04:55:27 +00:00
rwhod Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-21 13:36:57 +00:00
sa Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-21 13:36:57 +00:00
schedctl Disallow user priority adjustments for SCHED_OTHER policy, simplify 2008-10-18 03:40:18 +00:00
screenblank Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-21 13:36:57 +00:00
sdpd Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-21 13:36:57 +00:00
sendmail
services_mkdb Convert TNF licenses to new 2 clause variant 2008-04-30 13:10:46 +00:00
sesd
sliplogin Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-21 13:36:57 +00:00
sntp resolve ntp 4.2.4p5 import 2008-08-23 09:25:25 +00:00
spray
srtconfig From Zafer Aydogan: Fix a typo: s/distination/destination/ 2007-08-05 09:31:24 +00:00
sti Convert TNF licenses to new 2 clause variant 2008-04-30 13:10:46 +00:00
sunlabel Convert TNF licenses to new 2 clause variant 2008-04-30 13:10:46 +00:00
sup Use ${TOOL_SED} instead of plain "sed" in "!=" assignments. 2008-10-25 22:35:36 +00:00
syslogd PR/40043: Geoff C. Wing: syslogd timestamping and protocol parsing deficiencies 2008-11-27 20:37:21 +00:00
tadpolectl Remove space from start of line -- it had caused the sentence 2008-09-25 13:10:53 +00:00
tcpdchk
tcpdmatch
tcpdrop Set the mib appropriately depending on the socket address family. 2007-06-28 18:47:17 +00:00
tcpdump Use ${TOOL_SED} instead if plain sed in Makefiles. 2008-10-25 22:27:34 +00:00
timed Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-21 13:36:57 +00:00
tpctl Backout previous: the license sweep touched these files in error, so 2008-05-10 15:31:03 +00:00
tprof Expunge references to lockmgr. 2008-01-30 14:16:42 +00:00
traceroute Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-21 13:36:57 +00:00
traceroute6 Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the 2007-05-28 12:06:17 +00:00
trpt Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-21 13:36:57 +00:00
unlink Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-21 13:36:57 +00:00
usbdevs Convert TNF licenses to new 2 clause variant 2008-04-30 13:10:46 +00:00
user Use ${TOOL_AWK} instead of ${AWK} or plain "awk" in make commands. 2008-10-19 22:05:23 +00:00
veriexecgen Convert TNF licenses to new 2 clause variant 2008-04-30 13:10:46 +00:00
videomode
vipw Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-21 13:36:57 +00:00
vnconfig Move TNF licenses to 2 clause form 2008-05-02 18:11:04 +00:00
wiconfig Wrap compiler-specific flags with HAVE_GCC and HAVE_PCC as necessary. Add a few flags for PCC. 2008-08-29 00:02:21 +00:00
wlanctl Use __arraycount(). Do not needlessly import net80211/ieee80211_node.h. 2007-12-22 00:58:15 +00:00
wpa With the demise of ../wpa_supplicant/crypto_libc.c, enable the 2008-10-18 14:41:49 +00:00
wsconscfg kill license clauses 3 and 4 2008-05-26 12:15:42 +00:00
wsfontload kill license clauses 3 and 4 2008-05-26 12:15:42 +00:00
wsmoused Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-21 13:36:57 +00:00
wsmuxctl Convert TNF licenses to new 2 clause variant 2008-04-30 13:10:46 +00:00
ypbind Convert TNF licenses to new 2 clause variant 2008-04-30 13:10:46 +00:00
yppoll Convert TNF licenses to new 2 clause variant 2008-04-30 13:10:46 +00:00
ypserv Disable hostname lookup for ypserv(8) libwrap access control, 2008-05-16 16:41:42 +00:00
ypset Convert TNF licenses to new 2 clause variant 2008-04-30 13:10:46 +00:00
zdump
zic
Makefile Now that MKPUFFS is default, kill it as advertised. 2008-11-12 13:17:27 +00:00
Makefile.inc