1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00
freebsd/usr.sbin
Warner Losh 7a731ac2d2 Update length more correctly when parsing a cis info field.
Before, we were using
	while (*p++ && --len > 0);
to do this.  However, len doesn't get decremented for the NUL byte, so when
we used len later to see if we still have CIS left for some optional fields,
we'd run off the end of an array and dump core.

Instead, replace it with
	len -= strlen(p) + 1;
	p += strlen(p) + 1;
which is more correct.  It is a little bogus to assume that p points to
a valid C string, but only a little.  The PC Card SPEC mandates that it
does, and we already depend on that with the use of strdup a few lines
earlier.  Since much of the rest of the cis parsing code isn't hyper
retentive about error checking, I'll leave that level of checking for
another time and/or another committer :-).
2002-01-06 18:03:55 +00:00
..
ac localtime() was being called with an int-pointer due to recent utmp 2001-10-29 00:36:01 +00:00
accton Correct a typo. 2001-09-05 19:26:17 +00:00
acpi Add support for decoding Buffer objects that contain PnP/ACPI resource 2002-01-02 07:01:34 +00:00
adduser Oops, missed one point where $pwd_mkdb had been used. 2002-01-04 21:28:32 +00:00
amd Removed mentions of TARGET_ARCH from non-cross places. 2001-10-04 14:13:16 +00:00
ancontrol Fix bugs in the structure for rx_frame by making gap length one byte and 2001-12-31 22:01:44 +00:00
apm mdoc(7) police: join split punctuation to macro calls. 2001-08-10 17:35:21 +00:00
apmd Handle snprintf() returning < 0 (not just -1) 2001-08-20 15:09:34 +00:00
arp Reorder WARNS line for style. 2001-12-10 21:13:36 +00:00
atm Perform a major cleanup of the usr.sbin Makefiles. 2001-07-20 06:20:32 +00:00
boot0cfg WARNS=2 cleanup. 2001-12-11 06:44:29 +00:00
boot98cfg mdoc(7) police: utilize the new .Ex macro. 2001-08-15 09:09:47 +00:00
bootparamd can not -> cannot 2001-08-08 18:32:06 +00:00
btxld mdoc(7) police: utilize the new .Ex macro. 2001-08-15 09:09:47 +00:00
burncd Write the "msinfo" result to stdout instead of stderr 2002-01-05 15:21:05 +00:00
cdcontrol Reorder WARNS line for style. 2001-12-10 21:13:36 +00:00
chkgrp Perform a major cleanup of the usr.sbin Makefiles. 2001-07-20 06:20:32 +00:00
chown Add prototypes for main() so that these programs compile with -Werror 2001-12-14 16:22:41 +00:00
chroot Add xref to jail(8) 2001-12-28 09:24:19 +00:00
ckdist mdoc(7) police: s/BSD/.Bx/ where appropriate. 2001-08-14 10:01:54 +00:00
config Bump configvers for different handling of maxusers. 2001-12-14 09:40:01 +00:00
cron Fix the @monthly and @weekly shortcuts so that they actually run 2001-08-16 14:23:59 +00:00
crunch ia64 support. Hide a.out support solely under i386. While alpha never 2001-10-23 10:18:41 +00:00
ctm Spell "FreeBSD" with "F" and "BSD" in uppercase. 2001-08-13 16:33:00 +00:00
daemon mdoc(7) police: minor formatting tweaks. 2001-08-31 12:52:50 +00:00
dev_mkdb Add prototypes for main() so that these programs compile with -Werror 2001-12-14 16:22:41 +00:00
devinfo Reorder WARNS line for style. 2001-12-10 21:13:36 +00:00
digictl Reorder WARNS line for style. 2001-12-10 21:13:36 +00:00
diskpart Remove whitespace at EOL. 2001-07-15 08:06:20 +00:00
edquota Reorder WARNS line for style. 2001-12-10 21:13:36 +00:00
elf2exe mdoc(7) police: simplify literal display block. 2001-08-20 08:29:55 +00:00
extattrctl o Add a 'showattr' function the extattrctl, allowing a backing file to 2001-12-31 18:21:24 +00:00
faithd s/sysctl -w/sysctl/ 2001-12-11 08:29:10 +00:00
fdcontrol Second round of floppy disk driver documentation updates: document the 2001-12-25 21:21:18 +00:00
fdformat Second round of floppy disk driver documentation updates: document the 2001-12-25 21:21:18 +00:00
fdread Long promised major enhancement set for the floppy disk driver: 2001-12-15 19:09:04 +00:00
fdwrite mdoc(7) police: 2001-08-07 15:48:51 +00:00
getextattr WARNS=2 and style(9) cleanup: 2001-12-04 03:28:31 +00:00
gifconfig mdoc(7) police: fix markup, remove stray .Xr. 2001-12-21 08:10:28 +00:00
i4b Remove unused includes, remove the duplicated definitions of AUTHNAMELEN 2001-12-31 09:32:32 +00:00
ifmcstat Perform a major cleanup of the usr.sbin Makefiles. 2001-07-20 06:20:32 +00:00
inetd Fix a typo. 2001-12-11 13:14:48 +00:00
iostat Redo patch in 1.22 such that the header printing is reset when the 2001-09-26 19:35:03 +00:00
ipftest Perform a major cleanup of the usr.sbin Makefiles. 2001-07-20 06:20:32 +00:00
ipresend Perform a major cleanup of the usr.sbin Makefiles. 2001-07-20 06:20:32 +00:00
ipsend Perform a major cleanup of the usr.sbin Makefiles. 2001-07-20 06:20:32 +00:00
iptest Perform a major cleanup of the usr.sbin Makefiles. 2001-07-20 06:20:32 +00:00
IPXrouted Perform a major cleanup of the usr.sbin Makefiles. 2001-07-20 06:20:32 +00:00
jail Add some wisdom to the jail setup instructions. 2001-12-14 20:20:50 +00:00
kbdcontrol mdoc(7) police: 2001-08-07 15:48:51 +00:00
kbdmap mdoc(7) police: s/vidmap/vidfont/, don't xref to itself. 2001-09-04 13:10:28 +00:00
kernbb Perform a major cleanup of the usr.sbin Makefiles. 2001-07-20 06:20:32 +00:00
keyadmin Remove whitespace at EOL. 2001-07-15 08:06:20 +00:00
keyserv Fixed bitrot in DPADD in previous commit. 2001-07-30 11:18:09 +00:00
kgmon Perform a major cleanup of the usr.sbin Makefiles. 2001-07-20 06:20:32 +00:00
kgzip mdoc(7) police: utilize the new .Ex macro. 2001-08-15 09:09:47 +00:00
kldxref Remove unnecessary machine/bootinfo.h includes. 2002-01-03 19:10:49 +00:00
lastlogin Fix ctime(&int) due to change to lastlog->ll_time 2001-10-29 00:40:05 +00:00
lpr Add another level of checking to 'chkprintcap', which is done by 2001-12-15 23:35:55 +00:00
lptcontrol Perform a major cleanup of the usr.sbin Makefiles. 2001-07-20 06:20:32 +00:00
mailstats Perform a major cleanup of the usr.sbin Makefiles. 2001-07-20 06:20:32 +00:00
mailwrapper Don't free memory that was never allocated. This fixes a core dump in 2001-08-09 06:20:18 +00:00
makemap Perform a major cleanup of the usr.sbin Makefiles. 2001-07-20 06:20:32 +00:00
manctl Remove whitespace at EOL. 2001-07-15 08:06:20 +00:00
memcontrol Perform a major cleanup of the usr.sbin Makefiles. 2001-07-20 06:20:32 +00:00
mergemaster Hopefully squish the problem of mm creating sendmail files in 2001-08-07 06:22:12 +00:00
mixer Perform a major cleanup of the usr.sbin Makefiles. 2001-07-20 06:20:32 +00:00
mld6query Perform a major cleanup of the usr.sbin Makefiles. 2001-07-20 06:20:32 +00:00
mlxcontrol Perform a major cleanup of the usr.sbin Makefiles. 2001-07-20 06:20:32 +00:00
mount_nwfs Default to WARNS=2. 2001-12-04 02:19:58 +00:00
mount_portalfs Default to WARNS=2. 2001-12-04 02:19:58 +00:00
mount_smbfs Add bmake glue for src/contrib/smbfs and connect userland smbfs 2001-12-14 11:41:22 +00:00
mountd Default to WARNS=2. 2001-12-04 02:19:58 +00:00
moused mdoc(7) police: protect trailing full stops of abbreviations 2001-08-10 13:45:36 +00:00
mptable - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
mrouted Set BINOWN=root explicitly for setuid root binaries. 2001-09-13 06:48:18 +00:00
mtest Include missing header files which define functions for which gcc has 2001-06-24 20:25:23 +00:00
mtree Only compile with strtofflags.c from libc if bootstrapping. 2001-09-24 15:38:38 +00:00
named FILES support for bsd.prog.mk. See bsd.README for details. 2001-12-17 13:59:35 +00:00
named.reload Remove whitespace at EOL. 2001-07-15 08:06:20 +00:00
named.restart Remove whitespace at EOL. 2001-07-15 08:06:20 +00:00
ndc Perform a major cleanup of the usr.sbin Makefiles. 2001-07-20 06:20:32 +00:00
ndp Do not delete 'goto ours' routes when using -c option. 2001-08-09 19:40:35 +00:00
newsyslog Fix the type of the NULL arg to execl(). 2001-11-14 17:00:58 +00:00
nfsd Default to WARNS=2. 2001-12-04 02:19:58 +00:00
ngctl mdoc(7) police: utilize the new .Ex macro. 2001-08-15 09:09:47 +00:00
nghook mdoc(7) police: protect trailing full stops of abbreviations 2001-08-10 13:45:36 +00:00
nologin Remove whitespace at EOL. 2001-07-15 07:53:42 +00:00
nslookup Install files via FILES. 2001-12-17 16:21:59 +00:00
nsupdate Perform a major cleanup of the usr.sbin Makefiles. 2001-07-20 06:20:32 +00:00
ntp Install files via FILES. 2001-12-17 16:21:59 +00:00
pccard Update length more correctly when parsing a cis info field. 2002-01-06 18:03:55 +00:00
pciconf Add missing -v option to the SYNOPSIS. 2001-11-27 12:57:45 +00:00
pcvt Install files via FILES. 2001-12-17 16:21:59 +00:00
periodic mdoc(7) police: fix markup in revision 1.25. 2001-12-08 16:15:44 +00:00
pim6dd Perform a major cleanup of the usr.sbin Makefiles. 2001-07-20 06:20:32 +00:00
pim6sd Perform a major cleanup of the usr.sbin Makefiles. 2001-07-20 06:20:32 +00:00
pkg_install Choose more paranoid modes for the temporary directory so the user can't 2001-11-22 01:54:33 +00:00
pnpinfo Perform a major cleanup of the usr.sbin Makefiles. 2001-07-20 06:20:32 +00:00
ppp Consider PROTO_IPV6 as compressible by CCP. 2001-12-09 01:29:12 +00:00
pppctl *** empty log message *** 2001-10-01 08:43:58 +00:00
pppd Logging should wind up in /var/log, not /etc/ppp/. 2001-07-31 16:09:29 +00:00
pppstats Perform a major cleanup of the usr.sbin Makefiles. 2001-07-20 06:20:32 +00:00
praliases Perform a major cleanup of the usr.sbin Makefiles. 2001-07-20 06:20:32 +00:00
prefix s/sysctl -w/sysctl/ 2001-12-11 08:29:10 +00:00
procctl Perform a major cleanup of the usr.sbin Makefiles. 2001-07-20 06:20:32 +00:00
pstat Change the vnode list under the mount point from a LIST to a TAILQ 2001-10-23 01:21:29 +00:00
pw Use correct mode for temporary file. 2001-12-20 16:03:04 +00:00
pwd_mkdb Explicitly use int32_t for on-disk records for pw_change and pw_expire, 2001-10-27 02:13:41 +00:00
quot Reorder WARNS line for style. 2001-12-10 21:13:36 +00:00
quotaon Remove a duplicate word. 2001-11-19 08:20:24 +00:00
rarpd Grammatical fixes over previous commit. 2001-11-20 16:33:55 +00:00
raycontrol Whack this code with the Blessed Wand of Stack Protection. 2001-08-08 22:27:02 +00:00
repquota Reorder WARNS line for style. 2001-12-10 21:13:36 +00:00
rip6query Perform a major cleanup of the usr.sbin Makefiles. 2001-07-20 06:20:32 +00:00
rmt atol -> strtoll, for file offset 2001-09-05 17:05:31 +00:00
route6d mdoc(7) police: 2001-08-07 15:48:51 +00:00
rpc.lockd prototype functions and fix some line wrapping 2001-12-02 11:10:46 +00:00
rpc.statd Perform a major cleanup of the usr.sbin Makefiles. 2001-07-20 06:20:32 +00:00
rpc.umntall Don't ignore SIGINT and SIGQUIT. The comment said "Ignore SIGINT 2001-12-09 20:18:36 +00:00
rpc.yppasswdd Spelling police: sucessful -> successful. 2001-11-24 23:41:32 +00:00
rpc.ypupdated Perform a major cleanup of the usr.sbin Makefiles. 2001-07-20 06:20:32 +00:00
rpc.ypxfrd Perform a major cleanup of the usr.sbin Makefiles. 2001-07-20 06:20:32 +00:00
rpcbind Capitalize the first word in sentences, and put periods at the end of 2001-08-20 00:03:01 +00:00
rrenumd mdoc(7) police: join split punctuation to macro calls. 2001-08-10 17:35:21 +00:00
rtadvd mdoc(7) police: utilize the new .Ex macro. 2001-08-15 09:09:47 +00:00
rtprio Remove whitespace at EOL. 2001-07-15 08:06:20 +00:00
rtsold mdoc(7) police: Fixed the .Ex calls in manpages that describe more 2001-09-11 12:27:15 +00:00
rwhod Convert time_t to/from 32 bit representations for transmission over 2001-10-28 20:33:07 +00:00
sa mdoc(7) police: utilize the new .Ex macro. 2001-08-15 09:09:47 +00:00
sade Correct the path for the stable snapshot server. 2002-01-03 23:33:21 +00:00
sendmail Set BINOWN=root explicitly for setuid root binaries. 2001-09-14 11:03:34 +00:00
setextattr Prototype usage() and set WARNS?=2 2001-12-04 13:39:02 +00:00
setkey mdoc(7) police: protect trailing full stops of abbreviations 2001-08-10 13:45:36 +00:00
sgsc - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
sicontrol Perform a major cleanup of the usr.sbin Makefiles. 2001-07-20 06:20:32 +00:00
sliplogin Set BINOWN=root explicitly for setuid root binaries. 2001-09-13 06:48:18 +00:00
slstat The interface index space may be sparsely populated (e.g. when an 2001-10-17 04:12:29 +00:00
spkrtest mdoc(7) police: removed HISTORY info from the .Os call. 2001-07-10 15:12:08 +00:00
spray Perform a major cleanup of the usr.sbin Makefiles. 2001-07-20 06:20:32 +00:00
stallion FILES support for bsd.prog.mk. See bsd.README for details. 2001-12-17 13:59:35 +00:00
sysinstall Correct the path for the stable snapshot server. 2002-01-03 23:33:21 +00:00
syslogd Add a new flag '-c' to disable repeated line compression when the output 2002-01-05 07:34:52 +00:00
tcpdchk Don't clobber CFLAGS. 2001-08-04 21:48:18 +00:00
tcpdmatch Don't clobber the default for CFLAGS. 2001-08-31 11:05:24 +00:00
tcpdump Do not assume that sizeof(tv_sec) is sizeof(time_t) - it will be, but 2001-10-28 20:53:17 +00:00
timed Unifdef all the SGI code. It mainly added clutter while providing some 2001-11-20 07:13:40 +00:00
traceroute Set BINOWN=root explicitly for setuid root binaries. 2001-09-13 06:48:18 +00:00
traceroute6 Don't override BINGRP -- this binary is not ``setgid bin''. 2001-09-13 06:52:42 +00:00
trpt SECURITY: Drop `setgid kmem' bit as early as possible. 2001-08-31 16:26:37 +00:00
tzsetup mdoc(7) police: 2001-08-07 15:48:51 +00:00
usbd Sync usb.h with NetBSD, apart from usb_device_info.speed, which 2002-01-02 20:16:53 +00:00
usbdevs Removed duplicate VCS ID tags, as per style(9). 2001-08-13 14:06:34 +00:00
vidcontrol mdoc(7) police: markup nits. 2001-09-10 09:08:47 +00:00
vipw Perform a major cleanup of the usr.sbin Makefiles. 2001-07-20 06:20:32 +00:00
vnconfig Perform a major cleanup of the usr.sbin Makefiles. 2001-07-20 06:20:32 +00:00
watch Talk about what the user needs to do to get the snp devices, and how 2001-11-24 17:02:58 +00:00
wicontrol WARNS= -> WARNS?= 2001-09-21 07:25:53 +00:00
wlconfig mdoc(7) police: join split punctuation to macro calls. 2001-08-10 17:35:21 +00:00
xten Perform a major cleanup of the usr.sbin Makefiles. 2001-07-20 06:20:32 +00:00
yp_mkdb Perform a major cleanup of the usr.sbin Makefiles. 2001-07-20 06:20:32 +00:00
ypbind Perform a major cleanup of the usr.sbin Makefiles. 2001-07-20 06:20:32 +00:00
yppoll Fix int vs time_t, convert int to time_t 2001-10-28 20:40:58 +00:00
yppush Perform a major cleanup of the usr.sbin Makefiles. 2001-07-20 06:20:32 +00:00
ypserv mdoc(7) police: join split punctuation to macro calls. 2001-08-10 17:35:21 +00:00
ypset - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
zic Perform a major cleanup of the usr.sbin Makefiles. 2001-07-20 06:20:32 +00:00
Makefile Exclude pppctl on ia64 due to libc_r. I had been building with 2001-11-04 06:15:28 +00:00
Makefile.inc - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00