freebsd-nq/usr.bin
Doug Barton 7d5b77ef5f Adjust the size passed to readlink so that the null termination
falls within the range of the path variable.

Cribbed from the latest NetBSD source.

Obtained from:	provos@NetBSD.org
2002-10-25 07:26:36 +00:00
..
alias Fix installworld. 2002-07-17 15:35:31 +00:00
apply WARNS=4 2002-07-14 18:23:22 +00:00
ar WARNS=4 2002-07-14 18:23:22 +00:00
asa mdoc(7) police: minor markup nits. 2002-05-30 13:33:59 +00:00
at mdoc(7) police: Removed redundant .Ns calls. 2002-08-13 16:07:28 +00:00
awk BWK awk appears to work for world builds just fine now. We want to make 2002-05-10 20:36:21 +00:00
banner remove __P 2002-03-22 01:22:50 +00:00
basename ANSIify function definitions. 2002-09-04 23:29:10 +00:00
biff Bump document date for the 'beep only' change. 2002-08-16 03:08:25 +00:00
brandelf Fix typo in the BSD copyright: s/withough/without/ 2002-06-02 20:05:59 +00:00
bzip2
c89
c99 Re-add the code which maps POSIX standard library names into the ones 2002-10-08 02:19:54 +00:00
calendar Add my birthday. 2002-10-20 13:33:45 +00:00
cap_mkdb ANSIify function definitions to avoid a warning. 2002-07-28 14:41:26 +00:00
catman Revert last delta. SGR support in grotty(1) is disabled system-wide 2002-10-18 09:14:17 +00:00
chat Replace various spelling with FALLTHROUGH which is lint()able 2002-08-25 13:23:09 +00:00
checknr ANSIify function definitions to avoid a warning. 2002-07-28 14:55:59 +00:00
chflags ANSIify function definitions. 2002-09-04 23:29:10 +00:00
chkey Use strchr() instead of index(). Use getopt(). Use err(). 2002-08-27 19:06:44 +00:00
chpass Consistently use FBSDID 2002-06-30 05:25:07 +00:00
cksum ANSIify function definitions to avoid a warning. 2002-07-28 15:13:17 +00:00
cmp ANSIify function definitions to avoid a warning. 2002-07-28 15:13:17 +00:00
col ANSIify function definitions. 2002-09-04 23:29:10 +00:00
colcrt ANSIify function definitions. 2002-09-04 23:29:10 +00:00
colldef Normalize FILES section by using .Bl/.El enumerate. 2002-10-16 13:00:42 +00:00
colrm ANSIify function definitions to avoid a warning. 2002-07-28 15:22:43 +00:00
column ANSify function definitions to avoid a warning. 2002-07-28 15:25:15 +00:00
comm ANSIify function definitions to avoid a warning. 2002-07-28 15:28:38 +00:00
compile_et
compress Spelling. 2002-10-16 12:42:15 +00:00
csplit mdoc(7) police: simplify. 2002-08-14 11:38:30 +00:00
ctags ANSIify function definitions to avoid a warning. 2002-07-28 15:50:38 +00:00
cut ANSIify function definitions. 2002-09-04 23:29:10 +00:00
dig
dirname ANSIify function definitions to avoid a warning. 2002-07-28 15:50:38 +00:00
dnskeygen
dnsquery
doscmd Initiate deorbit burn for the i386-only a.out related support. Moves are 2002-09-17 01:49:00 +00:00
du Change the type of an unused variable to appease a warning. 2002-10-23 19:10:15 +00:00
ee Reimplemented bsd.nls.mk using bsd.files.mk and bsd.links.mk. 2002-07-02 12:37:09 +00:00
elf2aout Set NO_WERROR to ignore the following warning which is emitted on 2002-07-11 18:06:09 +00:00
enigma ANSIify function definitions. 2002-09-04 23:29:10 +00:00
env ANSIify function definitions. 2002-09-04 23:29:10 +00:00
expand ANSIify function definitions. 2002-09-04 23:29:10 +00:00
false Consistently use FBSDID 2002-06-30 05:25:07 +00:00
fetch s/optarg/s/ (cut'n'paste braino) 2002-08-27 10:19:24 +00:00
file Update for FILE v3.39. 2002-09-19 13:53:17 +00:00
file2c Consistently use FBSDID 2002-06-30 05:25:07 +00:00
find Make the threatened fts(3) ABI fix. FTSENT now avoids the use of the struct 2002-09-21 01:28:41 +00:00
finger ANSIify function definitions. 2002-09-04 23:29:10 +00:00
fmt Consistently use FBSDID 2002-06-30 05:25:07 +00:00
fold ANSIify function definitions. 2002-09-04 23:29:10 +00:00
from ANSIify function definitions. 2002-09-04 23:29:10 +00:00
fstat Rename struct specinfo to the more appropriate struct cdev. 2002-09-27 18:27:10 +00:00
fsync Consistently use FBSDID 2002-06-30 05:25:07 +00:00
ftp Update for lukemftp-1.6-beta2. 2002-06-15 09:42:17 +00:00
gcore Add #include <sys/queue.h> for sparc64's benefit. The MD includes there 2002-09-13 18:24:59 +00:00
gencat Use mkstemp(3) to avoid /tmp race. 2002-05-29 14:23:10 +00:00
getconf Completely revamp the way getconf(1) works, for better adherence to the 2002-09-19 03:39:03 +00:00
getopt ANSIify function definitions. 2002-09-04 23:29:10 +00:00
gprof Remove done() which was just exit() so use of warn()/err() can be made. Abort 2002-10-16 13:50:09 +00:00
head Remove duplicate __FBSDID() - spotted by trying to build with a non-GNU 2002-07-23 14:39:20 +00:00
hesinfo ANSIify function definitions. 2002-09-04 23:29:10 +00:00
hexdump ANSIify function definitions. 2002-09-04 23:29:10 +00:00
host
id ANSIify function definitions. 2002-09-04 23:29:10 +00:00
indent Spelling 2002-10-16 13:58:39 +00:00
ipcrm ANSIify function definitions. 2002-09-04 23:29:10 +00:00
ipcs Consistently use FBSDID 2002-06-30 05:25:07 +00:00
join ANSIify function definitions. 2002-09-04 23:29:10 +00:00
jot Don't depend on pollution in <limits.h> for the definition of 2002-07-05 15:58:27 +00:00
kdump Backed out revs 1.32-1.33. The problem has been fixed better by 2002-09-16 10:06:02 +00:00
kenv Consistently use FBSDID 2002-06-30 05:25:07 +00:00
keylogin Consistently use FBSDID 2002-06-30 05:25:07 +00:00
keylogout Consistently use FBSDID 2002-06-30 05:25:07 +00:00
killall s/progname/procname/ to be consistent with the other occurrences 2002-07-15 11:33:30 +00:00
ktrace Consistently use FBSDID 2002-06-30 05:25:07 +00:00
ktrdump Use strlcpy() instead of strcpy() to not overflow static buffers. 2002-10-06 23:52:06 +00:00
lam Back out my minorly disputed and possibly not well thought out changes to how 2002-07-01 18:03:30 +00:00
last ANSIify function definitions. 2002-09-04 23:29:10 +00:00
lastcomm ANSIify function definitions. 2002-09-04 23:29:10 +00:00
ldd Fix a problem with RTLD_TRACE flag to dlopen(3), which sometimes can return 2002-10-19 10:18:29 +00:00
leave ANSIify function definitions. 2002-09-04 23:29:10 +00:00
less
lessecho
lesskey
lex Catch up with the ISO-C++ standard. 2002-09-09 02:58:42 +00:00
limits Update the usage string in the limits(1) manpage to include -b for 2002-09-18 16:25:59 +00:00
locale Add locale(1). I have used it for while as useful debugging tool 2002-10-16 13:17:18 +00:00
locate Drop support for COPY, -c has been the default mode of install(1) 2002-07-29 09:40:17 +00:00
lock ANSIify function definitions. 2002-09-04 23:29:10 +00:00
lockf Consistently use FBSDID 2002-06-30 05:25:07 +00:00
logger ANSIify function definitions. 2002-09-04 23:29:10 +00:00
login Do not reuse flag name in its definition. Remove inadequate sentence. 2002-10-16 15:17:38 +00:00
logname ANSIify function definitions. 2002-09-04 23:29:10 +00:00
look ANSIify function definitions. 2002-09-04 23:29:10 +00:00
lorder Make it work with POSIX sort (POS arg) 2002-09-24 18:16:36 +00:00
lsvfs Add #include <sys/sysctl.h>. In my tree, mount.h includes 2002-08-11 02:07:43 +00:00
m4 Die on -D=foo, when parsing options - we can't let someone define (nil). 2002-09-04 01:12:39 +00:00
mail Replace various spelling with FALLTHROUGH which is lint()able 2002-08-25 13:23:09 +00:00
make Fix problem with my ability to tell the difference between 'r' and 'l'... We 2002-10-24 20:37:58 +00:00
makewhatis ANSIify function definitions. 2002-09-04 23:29:10 +00:00
mesg ANSIify function definitions. 2002-09-04 23:29:10 +00:00
minigzip Actually implement gzip's -c option. minigzip now also doubles 2002-10-03 19:30:22 +00:00
mkdep Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
mkfifo ANSIify function definitions. 2002-09-04 23:29:10 +00:00
mklocale Use more verbose diagnostics for wrong DIGIT range 2002-10-20 23:09:26 +00:00
mkstr warns fixes; ANSIfy, deregister, constify. 2002-04-28 12:28:41 +00:00
mktemp Use proper article. 2002-07-16 05:38:26 +00:00
msgs ANSIify function definitions. 2002-09-04 23:29:10 +00:00
mt Add information about the SDLT density codes. 2002-10-15 12:53:29 +00:00
ncal Teach ncal(1) about month names specified on the command line. 2002-10-02 12:31:10 +00:00
ncplist Style fixes; whitespace and header order. 2002-04-28 12:21:31 +00:00
ncplogin ANSIify function definitions. 2002-09-04 23:29:10 +00:00
netstat Warns cleanups for netstat: 2002-09-05 17:06:51 +00:00
newgrp mdoc(7) police: one minor change that was not probably worth a commit. 2002-05-30 13:57:35 +00:00
newkey The .Nm utility 2002-07-14 15:12:00 +00:00
nfsstat Replace /kernel with /boot/kernel/kernel. 2002-05-09 11:47:42 +00:00
nice ANSIify function definitions. 2002-09-04 23:29:10 +00:00
nl Remove local prototypes for main(). 2002-08-19 03:07:56 +00:00
nm Introduce enumerate of options using the standard way: 2002-10-16 15:28:20 +00:00
nohup WARNS=4 2002-07-14 18:23:22 +00:00
objformat Initiate deorbit burn for the i386-only a.out related support. Moves are 2002-09-17 01:49:00 +00:00
opieinfo
opiekey
opiepasswd
pagesize Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
passwd Introduce enumerate of options using the standard way. 2002-10-16 15:32:16 +00:00
paste Fix typos; each file has at least one s/seperat/separat/ 2002-08-11 13:05:30 +00:00
pathchk When stat(2) fails, put the name of the component it failed on in the 2002-06-10 10:03:46 +00:00
perl Prevent the wrapper from looping on itself forever, when there 2002-09-10 13:56:30 +00:00
pr ANSIify function definitions. 2002-09-04 23:29:10 +00:00
printenv ANSIify function definitions. 2002-09-04 23:29:10 +00:00
printf ANSIify function definitions. 2002-09-04 23:29:10 +00:00
quota Add a new flag (-l) that suppresses quota checks on NFS filesystems. 2002-08-09 00:53:00 +00:00
ranlib ANSIfy functions, and move extern declarations into a shared header 2002-04-28 11:59:43 +00:00
renice The .Nm utility 2002-07-14 15:12:00 +00:00
rev ANSIify function definitions. 2002-09-04 23:29:10 +00:00
rlogin Dekerberise. The corresponding userland stuff has been dekerberised 2002-10-16 16:09:05 +00:00
rpcgen Removal of spaces at EOL. Add __FBSDID. New function xmalloc, xrealloc, 2002-07-21 12:55:04 +00:00
rpcinfo The .Nm utility 2002-10-16 15:38:28 +00:00
rs Contrary to what the comments said, rs -H did not recycle storage, it just 2002-06-07 07:08:06 +00:00
rsh Dekerberise. The corresponding userland stuff has been dekerberised 2002-10-16 16:10:46 +00:00
rup Style only; format function declarations, sort header includes, and 2002-04-28 10:49:15 +00:00
ruptime Use __FBSDID(), ANSIfy headings, use const/unsigned in minor but 2002-04-28 10:56:09 +00:00
rusers Trivial warnings fixes; staticise and use unsigned. 2002-04-28 11:13:20 +00:00
rwall ANSIify function definitions. 2002-09-04 23:29:10 +00:00
rwho Modernise; ISOify, use __FBSDID(), use headers instead of hand-declaring. 2002-07-01 16:40:33 +00:00
sasc remove __P 2002-03-22 01:42:45 +00:00
script ANSIify function definitions. 2002-09-04 23:29:10 +00:00
sed Initialize a variable in order to fix when faced with picky compilers. 2002-09-20 19:40:23 +00:00
shar
showmount The -a and -d flags are mutually exclusive, show them as such in usage() and 2002-10-12 05:45:01 +00:00
size Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
smbutil
sockstat Use a cast to `void *' before casting to a pointer to a structure 2002-08-02 11:57:59 +00:00
soelim ANSIify function definitions. 2002-09-04 23:29:10 +00:00
split Support larger files (at least 64-bit offsets) by using off_t instead of 2002-07-15 05:31:55 +00:00
stat Adjust the size passed to readlink so that the null termination 2002-10-25 07:26:36 +00:00
strings Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
strip Drop support for COPY, -c has been the default mode of install(1) 2002-07-29 09:40:17 +00:00
su Add a new '-s' option to su(1): if the flag is present, attempt to 2002-10-23 03:19:34 +00:00
symorder Introduce option enumeration the standard way. 2002-10-17 12:58:14 +00:00
systat Adjust for getbsize argument type change. 2002-10-23 19:02:17 +00:00
tabs Note that this appeared at least as early as PWB UNIX. 2002-06-10 22:59:59 +00:00
tail revert WARNS=4, it makes the alpha compile sad. 2002-07-15 09:53:34 +00:00
talk Remove local prototypes for main(). 2002-08-19 03:07:56 +00:00
tconv Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
tcopy Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
tee ANSIify function definitions. 2002-09-04 23:29:10 +00:00
telnet Remove some #if 0'd code. After this, a "make unifdef" here produces 2002-10-02 00:37:01 +00:00
tftp mdoc(7) police: markup nits. 2002-05-30 06:18:53 +00:00
time ANSIify function definitions. 2002-09-04 23:29:10 +00:00
tip Merge from import. The import was done ages ago, and this diff has been 2002-07-19 14:10:35 +00:00
top Catch up to SMTX -> SLOCK changes. 2002-10-02 20:33:52 +00:00
touch ANSIify function definitions. 2002-09-04 23:29:10 +00:00
tput ANSIify function definitions. 2002-09-04 23:29:10 +00:00
tr Use .Fl/Ar for flags and arguments. 2002-10-17 13:04:49 +00:00
true A function which takes no arguments has an argument list spelled (void) in the 2002-06-20 05:35:40 +00:00
truncate remove __P 2002-03-22 01:42:45 +00:00
truss Don't depend on <signal.h> to include <sys/time.h>, instead include 2002-10-06 21:46:04 +00:00
tset ANSIify function definitions. 2002-09-04 23:29:10 +00:00
tsort ANSIify function definitions. 2002-09-04 23:29:10 +00:00
tty A space between switch and open-paren. Don't explicitly cast the value 2002-05-29 17:12:30 +00:00
uac Fix typo in the BSD copyright: s/withough/without/ 2002-06-02 20:05:59 +00:00
ul ANSIify function definitions. 2002-09-04 23:29:10 +00:00
uname Use some macro evil to create the functions for using sysctl(3) to get each 2002-09-23 06:47:39 +00:00
unexpand Fix off-by-one error processing the line after an empty line when the 2002-10-04 16:45:25 +00:00
unifdef The spec says that unifdefall removes all #ifs, and this now requires 2002-09-24 19:50:03 +00:00
uniq ANSIify function definitions. 2002-09-04 23:29:10 +00:00
units Add enough consts to keep everyone happy. 2002-07-28 16:23:28 +00:00
unvis ANSIify function definitions. 2002-09-04 23:29:10 +00:00
usbhidctl Usage style sweep: spell "usage" with a small 'u'. 2002-04-22 13:44:47 +00:00
users ANSIify function definitions. 2002-09-04 23:29:10 +00:00
uudecode Some uses of the variable n needed to be int, others needed to be 2002-09-11 04:26:09 +00:00
uuencode Improve the way base64 mode is enabled based on the program name, 2002-10-20 14:18:25 +00:00
uuidgen mdoc(7) police: kill hard sentence breaks. 2002-05-30 14:10:44 +00:00
vacation Update build infrastructure for sendmail 8.12. 2002-02-17 22:05:07 +00:00
vgrind Make it work with POSIX sort (POS arg). 2002-09-24 19:05:40 +00:00
vi Drop support for COPY, -c has been the default mode of install(1) 2002-07-29 09:40:17 +00:00
vis ANSIify function definitions. 2002-09-04 23:29:10 +00:00
vmstat The boottime variable in sys/kern/kern_tc.c is a struct timeval, not a 2002-08-09 15:47:43 +00:00
w Fix warning when calling w(1) when logged in via xdm/kdm. This is 2002-08-23 04:31:58 +00:00
wall Change iov_base's type from char *' to the standard void *'. All 2002-10-11 14:58:34 +00:00
wc Locale environment variables influence wc(1) regardless of whether the 2002-08-11 10:54:19 +00:00
what ANSIify function definitions. 2002-09-04 23:29:10 +00:00
whereis Use correct document date for the -a option. 2002-08-22 01:54:18 +00:00
which Handle relative and absolute pathnames (anything with a `/' in it) in the same 2002-06-30 06:02:39 +00:00
who Style: put static qualifier on definition of static functions. 2002-06-20 07:36:22 +00:00
whois ARIN has annoyingly started using caps when referencing 2002-09-18 07:51:46 +00:00
window Use POSIX macros for wait(2)-style status information instead of the 2002-06-03 23:13:11 +00:00
write ANSIify function definitions. 2002-09-04 23:29:10 +00:00
xargs Fix typos; each file has at least one s/seperat/separat/ 2002-08-11 13:05:30 +00:00
xinstall ANSIify function definitions. 2002-09-04 23:29:10 +00:00
xlint Need to run lint1 from ${WORLDTMP}/usr/libexec during buildworld. 2002-10-23 12:05:27 +00:00
xstr ANSIify function definitions. 2002-09-04 23:29:10 +00:00
yacc Add section number to .Xr directive. 2002-10-16 15:46:43 +00:00
yes ANSIify function definitions. 2002-09-04 23:29:10 +00:00
ypcat Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
ypmatch Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
ypwhich Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
Makefile Add the c99(1) utility, which is nothing more than a synonym for 2002-10-07 09:37:55 +00:00
Makefile.inc