1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-17 10:26:15 +00:00
freebsd/usr.sbin
Gregory Neil Shapiro 4095c651b0 Cleanup hostname matching in syslogd:
1. Hostnames were not treated case insensitively in all cases.

2. The method for stripping hostnames when reading the syslog.conf
   differed from that when finding the hostname of an incoming request.
   This lead to a broken match check.  In my case, it meant I had to
   have '@scooter.smi.example.com.example.com' to have 'logger.example.com'
   properly save messages from 'scooter.smi.sendmail.com'.

3. Add paranoia to cfline() such that it doesn't try to access memory
   outside of the bounds of the f_host string.

4. While I am here, get rid of an outdated comment, argv[{0,1,2}] are now
   checked for NULL after the strdup() calls.

Reviewed by:	dwmalone
MFC after:	1 week
2003-05-04 22:05:40 +00:00
..
ac Remove unused #includes. Eliminate castings by using size_t instead of int. 2002-10-17 13:19:47 +00:00
accton Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
acpi Support functions for the new ACPI import. 2003-04-29 18:50:34 +00:00
adduser Document the -g option in the usage message. 2003-03-23 23:06:44 +00:00
amd style.Makefile(5) 2003-04-04 17:49:21 +00:00
ancontrol Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
apm The -t flag in the retired apmconf.8 is the same as "-h false" in the 2003-05-01 14:19:00 +00:00
apmd english(4) police. 2002-12-27 12:15:40 +00:00
arp Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
atm de-__P() 2002-10-10 00:32:55 +00:00
bluetooth Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup, 2003-01-01 18:49:04 +00:00
boot0cfg Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
boot98cfg s/DIOCGPC98/DIOCSPC98/ 2003-05-02 14:55:42 +00:00
bootparamd
btxld Make this work on different endianness machines. 2003-03-11 13:48:58 +00:00
burncd Add support for using the CDROM env var for device to use; 2003-05-04 10:09:57 +00:00
cdcontrol Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
chkgrp Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
chown Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
chroot Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
ckdist - Align the function prototype of the external `crc' function with 2003-03-13 23:34:18 +00:00
config Don't convert the kernel ident to uppercase when writing the Makefile. 2003-04-24 00:52:58 +00:00
cron Allow inner whitespace in the right-hand side of an environment variable 2003-02-10 11:20:58 +00:00
crunch The second chdir(1) that I trimmed is needed too 2003-04-23 04:28:35 +00:00
ctm Remove the maximum patch size limit. It was intended as a check against 2003-04-07 08:09:53 +00:00
daemon style.Makefile(5) 2003-04-04 17:49:21 +00:00
dev_mkdb Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
devinfo -v now also prints the pnpinfo and location information for the devices 2003-02-17 18:56:54 +00:00
digictl style.Makefile(5) 2003-04-04 17:49:21 +00:00
diskinfo I forgot a rather crucial cast when I made this sectorsize agnostic. 2003-04-09 14:25:04 +00:00
editmap
edquota Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
elf2exe
extattr mdoc(7) police: Scheduled sweep. 2003-02-24 22:53:26 +00:00
extattrctl style.Makefile(5) 2003-04-04 17:49:21 +00:00
faithd Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup, 2003-01-01 18:49:04 +00:00
fdcontrol Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
fdformat
fdread
fdwrite
fwcontrol Add description of '-o' and '-s'. 2003-05-01 06:33:13 +00:00
getfmac sigh... revert the previous change; this isn't getpmac 2003-01-15 03:13:51 +00:00
getpmac mdoc(7) police: Scheduled sweep. 2003-02-24 22:53:26 +00:00
gifconfig english(4) police. 2002-12-27 12:15:40 +00:00
gstat Install the gstat manual page. 2003-04-28 11:54:01 +00:00
i4b Oops. Back out a style "fix" in the previous commit. SRCS must be defined 2003-04-13 14:21:56 +00:00
ifmcstat style.Makefile(5) 2003-04-04 17:49:21 +00:00
inetd Under some unusual conditions, inetd can leak a open file discriptor 2003-02-23 16:54:19 +00:00
iostat style.Makefile(5) 2003-04-04 17:49:21 +00:00
ipftest
ipresend
ipsend
iptest
IPXrouted "Advertizing" is ugly and possibly incorrect; use "Advertising" instead. 2003-02-27 14:07:49 +00:00
jail Force output of jail ID (if necessary) before excuting the command, 2003-04-21 17:20:48 +00:00
jexec o Add jls(8) for listing active jails. 2003-04-09 03:04:12 +00:00
jls IP addresses can be up to 15 characters long, not 12. 2003-04-22 13:24:56 +00:00
kbdcontrol Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
kbdmap mdoc(7) police: bump document date for the C rewrite, nit. 2002-12-04 14:45:48 +00:00
kernbb Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
keyadmin Arrange to not have /* inside a comment. Typo fix. 2002-10-16 15:56:13 +00:00
keyserv Use arc4random() instead of random() when generating the master key. 2003-02-18 01:35:58 +00:00
kgmon Use correct item to track max width of list 2003-03-24 20:55:28 +00:00
kgzip Convert kgzip(8) to be an i386 cross-tool. This is needed for 2003-03-11 11:45:43 +00:00
kldxref style.Makefile(5) 2003-04-04 17:49:21 +00:00
lastlogin
lpr Change DEFMX to 0. This removes the size limit for print jobs by default. 2003-03-27 08:33:01 +00:00
lptcontrol Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
mailstats
mailwrapper mdoc(7) police: Scheduled sweep. 2003-02-24 22:53:26 +00:00
makemap
manctl
memcontrol mdoc(7) police: markup fixes. 2002-11-27 15:31:08 +00:00
mergemaster Preserve directory structure in PRESERVED_FILES_DIR to avoid 2003-05-03 06:35:19 +00:00
mixer Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
mld6query
mlxcontrol
mount_nwfs
mount_portalfs
mount_smbfs This really isn't WARNS clean. 2002-12-30 09:38:46 +00:00
mountd style.Makefile(5) 2003-04-04 17:49:21 +00:00
moused Grammar and punctuation fixes 2003-04-25 22:31:06 +00:00
mptable
mrouted Backed out previous commit. Use ${LIBMROUTED} in LDADD again instead of 2003-04-16 14:53:51 +00:00
mtest
mtree Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
named "Fixed" LDADD by backing out part of the previous commit. -lfoo in 2003-04-16 13:50:52 +00:00
named.reload
named.restart
ndc style.Makefile(5) 2003-04-04 17:49:21 +00:00
ndp Fix typos, mostly s/ an / a / where appropriate and a few s/an/and/ 2002-12-30 21:18:15 +00:00
newsyslog Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
nfsd style.Makefile(5) 2003-04-04 17:49:21 +00:00
ngctl Add missing "of". 2002-12-14 00:20:43 +00:00
nghook
nologin
nslookup style.Makefile(5) 2003-04-04 17:49:21 +00:00
nsupdate
ntp style.Makefile(5) 2003-04-04 17:49:21 +00:00
ofwdump style.Makefile(5) 2003-04-04 17:49:21 +00:00
pccard Remove obsolete compatibility ifdef. 2003-04-23 23:41:48 +00:00
pciconf Fix up some grammar. 2003-01-09 04:35:38 +00:00
pcvt Call exit(0), not exit. 2003-04-29 19:53:00 +00:00
periodic
pkg_install * Add explicit conflict-checking to the package tools. Packages can 2003-04-17 09:56:05 +00:00
pnpinfo style.Makefile(5) 2003-04-04 17:49:21 +00:00
ppp When session is over, IPv6 default route to tun should be 2003-04-05 10:10:33 +00:00
pppctl style.Makefile(5) 2003-04-04 17:49:21 +00:00
pppd RFC1548, section 5.8: 2003-04-07 13:34:00 +00:00
pppstats
praliases
prefix Fix typos, mostly s/ an / a / where appropriate and a few s/an/and/ 2002-12-30 21:18:15 +00:00
procctl Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
pstat Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
pw style.Makefile(5) 2003-04-04 17:49:21 +00:00
pwd_mkdb Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
quot Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
quotaon Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
rarpd Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
raycontrol Don't dereference a NULL pointer when we don't have a ':' in the 2003-04-20 03:34:59 +00:00
repquota Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
rip6query
rmt Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
route6d Add missing srand() (sranddev() for FreeBSD) 2003-02-11 02:09:05 +00:00
rpc.lockd init_nsm() is executed after a call to daemon(*, 0), so error and 2003-04-24 14:38:42 +00:00
rpc.statd style.Makefile(5) 2003-04-04 17:49:21 +00:00
rpc.umntall Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
rpc.yppasswdd Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
rpc.ypupdated Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
rpc.ypxfrd Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
rpcbind style.Makefile(5) 2003-04-04 17:49:21 +00:00
rrenumd english(4) police. 2002-12-27 12:15:40 +00:00
rtadvd - fixed byte order of route lifetimes in route info opptions. 2003-04-10 07:31:34 +00:00
rtprio
rtsold style.Makefile(5) 2003-04-04 17:49:21 +00:00
rwhod style.Makefile(5) 2003-04-04 17:49:21 +00:00
sa Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
sade Don't use UFS2 by default during the install process on PC98, as the 2003-04-21 20:57:20 +00:00
sendmail style.Makefile(5) 2003-04-04 17:49:21 +00:00
setfmac style.Makefile(5) 2003-04-04 17:49:21 +00:00
setkey Use NI_xxx macros. 2003-04-16 09:53:29 +00:00
setpmac mdoc(7) police: Scheduled sweep. 2003-02-24 22:53:26 +00:00
sgsc
sicontrol mdoc(7) police: Deal with self-xrefs. 2002-12-24 13:41:48 +00:00
sliplogin
slstat Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
spkrtest
spray
stallion Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup, 2003-01-01 18:49:04 +00:00
sysinstall Don't use UFS2 by default during the install process on PC98, as the 2003-04-21 20:57:20 +00:00
syslogd Cleanup hostname matching in syslogd: 2003-05-04 22:05:40 +00:00
tcpdchk
tcpdmatch
tcpdump Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup, 2003-01-01 18:49:04 +00:00
timed Fix typos, mostly s/ an / a / where appropriate and a few s/an/and/ 2002-12-30 21:18:15 +00:00
traceroute
traceroute6 Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup, 2003-01-01 18:49:04 +00:00
trpt Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
tzsetup style.Makefile(5) 2003-04-04 17:49:21 +00:00
ugidfw style.Makefile(5) 2003-04-04 17:49:21 +00:00
usbd Eliminate hard sentence breaks. 2003-01-30 22:38:54 +00:00
usbdevs
vidcontrol mdoc(7) police: Nits. 2003-03-02 21:04:21 +00:00
vipw Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
vnconfig
watch Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
wicontrol Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
wlconfig
yp_mkdb Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
ypbind Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
yppoll Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
yppush Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
ypserv Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
ypset Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
zic style.Makefile(5) 2003-04-04 17:49:21 +00:00
Makefile These are no longer needed after tw is gone. 2003-04-27 05:42:07 +00:00
Makefile.inc