freebsd-dev/usr.bin
Dimitry Andric 7818f8df2e Correct a logic error in usr.bin/hexdump/conv.c, found by clang.
Whenever the conv_c() function encounters an incomplete multibyte char,
it peeks ahead.  It also sets p to peekbuf, to indicate it is still
processing the incomplete character.

However, on the next retry, it compares buf against peekbuf, which
always returns false, since both buf and peekbuf are local char arrays,
whose addresses are never the same.

Fix this by comparing against p instead, which was the intention.  Also
turn peekbuf into an array of u_char, to prevent conversion warnings.

MFC after:	1 week
2011-12-17 15:33:26 +00:00
..
alias Make hash, type and ulimit available via execve(). 2010-04-25 17:38:53 +00:00
apply Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
ar Don't try to free() an address returned by mmap(). This appears to be 2011-08-04 14:18:09 +00:00
asa
at Partially revert r227233. 2011-11-06 20:30:21 +00:00
atm
awk Apply patches directly to sources. Their effect is as follows: 2010-01-10 08:02:07 +00:00
banner Add missing static keywords to banner(1) 2011-11-06 08:13:51 +00:00
basename Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
bc Move most of the remaining USD/PSD/SMM papers into share/doc 2010-12-04 10:11:20 +00:00
biff Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
bluetooth
brandelf Use the newly brought %U macro. 2010-01-15 16:01:22 +00:00
bsdiff mdoc: move CAVEATS, BUGS and SECURITY CONSIDERATIONS sections to the 2010-05-13 12:07:55 +00:00
bzip2
bzip2recover
c89 Revert most of r210764, now that mdocml does the right 2010-12-28 10:08:50 +00:00
c99 Add missing static keywords to c99(1) 2011-11-06 08:13:58 +00:00
calendar Tidy up command line processing: 2011-11-09 01:40:46 +00:00
cap_mkdb Add missing static keywords to cap_mkdb(1) 2011-11-06 08:14:03 +00:00
catman Add missing static keywords to catman(1) 2011-11-06 08:14:09 +00:00
chat mdoc: drop redundant .Pp and .LP calls 2010-10-08 12:40:16 +00:00
checknr Mark global functions and/or variables in checknr(1) static where possible. 2011-11-06 18:49:03 +00:00
chkey Fix fd leak 2010-11-19 10:18:58 +00:00
chpass Mark the structure fields as const. 2011-11-06 17:20:44 +00:00
cksum Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
clang Upgrade our copy of llvm/clang to r142614, from upstream's release_30 2011-10-22 14:08:43 +00:00
cmp Add missing static keywords to cmp(1) 2011-11-06 08:14:16 +00:00
col Add missing static keywords to col(1) 2011-11-06 08:14:22 +00:00
colcrt Add missing static keywords to colcrt(1) 2011-11-06 08:14:28 +00:00
colldef Don't generate input() since it's not used. 2010-11-22 14:16:22 +00:00
colrm Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
column Add missing static keywords to column(1) 2011-11-06 08:14:34 +00:00
comm Add helpful clarification text. While not strictly necessary, these 2011-11-16 22:02:59 +00:00
compile_et
compress - add a missing "be" and "in" 2011-11-11 22:27:09 +00:00
cpio Correctly link bsdcpio and bsdtar against libmd and libcrpyto 2011-08-01 08:22:40 +00:00
cpuset Add missing static keywords to cpuset(1) 2011-11-06 08:14:40 +00:00
csplit Add missing static keywords to csplit(1) 2011-11-06 08:14:45 +00:00
csup In usr.bin/csup/proto.c, use the correct printf length modifier to print 2011-12-17 13:52:53 +00:00
ctags Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
cut Add missing static keywords to cut(1) 2011-11-06 08:14:51 +00:00
dc Remove unneeded CFLAGS. 2011-11-07 09:42:22 +00:00
dig
dirname Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
du Update du(1): 2011-12-09 02:30:56 +00:00
ee - pt_BR.ISO8859-1 catalog 2010-02-09 10:47:44 +00:00
elf2aout Make manpage's SYNOPSIS match program's usage(). 2010-02-12 15:07:24 +00:00
elfdump o Use C99 designated initializer to properly handle ELFOSABI_STANDALONE. 2011-10-16 14:11:05 +00:00
enigma Mark global functions and/or variables in enigma(1) static where possible. 2011-11-06 18:49:23 +00:00
env Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
expand Mark global functions and/or variables in expand(1) static where possible. 2011-11-06 18:49:30 +00:00
false Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
fetch latin1 -> utf8 2011-10-04 15:00:54 +00:00
file
file2c
find Replace char copyright[] by static const char copyright[]. 2011-12-10 18:11:06 +00:00
finger Build finger(1) with WARNS=6. 2011-10-14 07:24:23 +00:00
fmt Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
fold Add missing static keywords to fold(1) 2011-11-06 08:15:23 +00:00
from Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
fstat Mark global functions and/or variables in fstat(1) static where possible. 2011-11-06 18:49:36 +00:00
fsync
ftp Merge tnftp-20100108 from the vendor branch into head. 2011-06-20 08:00:32 +00:00
gcore Match size_t and ssize_t by using %zu and %zd instead of %d. 2011-07-11 05:46:15 +00:00
gencat mdoc: drop redundant .Pp and .LP calls 2010-10-08 12:40:16 +00:00
getconf
getent Print INIT_PROCESS and LOGIN_PROCESS entries as well. 2011-10-27 16:20:29 +00:00
getopt Fix typo in example getopt(1) script: $i vs $1 [1] 2011-01-26 18:43:15 +00:00
gprof More fixes for correct printf length modifiers usr.bin/gprof. 2011-12-17 14:51:24 +00:00
grep Add missing "static const" to long options table. 2011-12-10 18:21:03 +00:00
gzip According to the NetBSD foundation [1]: 2011-10-16 07:35:26 +00:00
head Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
hesinfo
hexdump Correct a logic error in usr.bin/hexdump/conv.c, found by clang. 2011-12-17 15:33:26 +00:00
host
iconv Remove redundant assignments to WARNS. 2011-06-06 20:24:17 +00:00
id Correct the change made in r227166. 2011-11-06 09:09:45 +00:00
indent Use NULL instead of 0 when setting up pointer. 2010-08-10 06:58:12 +00:00
ipcrm
ipcs Remove semaphore map entry count "semmap" field and its tuning 2011-07-14 14:18:14 +00:00
join Add missing static keywords to join(1) 2011-11-06 08:15:35 +00:00
jot Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
kdump It turns out that truss also used kdump's mkioctls script, and expected 2011-10-21 11:08:25 +00:00
keylogin
keylogout
killall Simplify various code that allowed for sys_signame being lower case. 2011-03-06 19:50:47 +00:00
ktrace Make ktrace(1) build cleanly at WARNS level 6 by completely rethinking the 2011-10-18 08:26:12 +00:00
ktrdump Add -H flag to print thread id. 2011-01-26 06:36:14 +00:00
lam Mark global functions and/or variables in lam(1) static where possible. 2011-11-06 18:49:41 +00:00
last Add missing static keywords to last(1) 2011-11-06 08:15:41 +00:00
lastcomm Remove unneeded headers. 2011-06-21 20:36:10 +00:00
ldd Fix clang warnings. 2011-06-18 13:56:33 +00:00
leave Build last(1) and leave(1) with WARNS=6. 2011-10-14 07:26:20 +00:00
less Regenerated with latest configure script. 2011-05-10 01:05:41 +00:00
lessecho
lesskey
lex Replace char copyright[] by static const char copyright[]. 2011-12-10 18:11:06 +00:00
limits Add link to rctl(8). 2011-04-10 10:17:01 +00:00
locale Always assign WARNS using ?= 2010-03-02 16:58:04 +00:00
locate Properly use SCHAR_MAX instead of CHAR_MAX for 0x7f. This fixes operation 2010-11-23 15:08:56 +00:00
lock Add missing static keywords to lock(1) 2011-11-06 08:15:48 +00:00
lockf mdoc: order prologue macros consistently by Dd/Dt/Os 2010-04-14 19:08:06 +00:00
logger Add missing static keywords to logger(1) 2011-11-06 08:15:53 +00:00
login Call pam_setcred() before login_getpwclass to support home directories 2011-05-03 10:18:27 +00:00
logins
logname Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
look Add missing static keywords to look(1) 2011-11-06 08:15:59 +00:00
lorder Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
lsvfs
lzmainfo Remove unneeded WARNS=3 lines. 2011-10-16 08:04:43 +00:00
m4 Synchronize with laster version of m4 from OpenBSD and NetBSD 2011-11-28 13:32:39 +00:00
mail Replace __const by const in all non-contributed source code. 2011-12-13 13:32:56 +00:00
make Revert r228521: sometimes job output is lost 2011-12-15 06:25:19 +00:00
makewhatis Modernize scandir(3) and alphasort(3) interfaces according to the IEEE 2010-01-04 15:40:17 +00:00
man Clean up markup. 2011-08-04 08:50:33 +00:00
mesg Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
minigzip Enable mmap for minigzip(1). 2010-03-22 21:19:17 +00:00
ministat Add missing static keywords to ministat(1) 2011-11-06 08:16:11 +00:00
mkcsmapper [mdoc] Fixed .Dt call. 2011-05-25 14:13:53 +00:00
mkcsmapper_static Add the BSD-licensed Citrus iconv to the base system with default off 2011-02-25 00:04:39 +00:00
mkdep Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
mkesdb [mdoc] Fixed .Dt call. 2011-05-25 14:13:53 +00:00
mkesdb_static Add the BSD-licensed Citrus iconv to the base system with default off 2011-02-25 00:04:39 +00:00
mkfifo Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
mklocale Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
mkstr Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
mktemp Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
mkuzip Fixed an embedded shell script. 2011-05-13 09:55:48 +00:00
msgs Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
mt In usr.bin/mt/mt.c, the c_code member of struct commands should really 2011-12-17 02:23:30 +00:00
nc MFV: nc(1) from OpenBSD 4.8. 2010-10-19 00:01:53 +00:00
ncal Fix typo in order of markup and text. 2011-07-11 10:42:36 +00:00
ncplist Fix ncplist to build with WARNS=6. 2011-10-16 10:00:28 +00:00
ncplogin Remove duplicated header files 2011-06-24 07:18:44 +00:00
netstat Fix the following bugs related to the SCTP support of netstat: 2011-07-22 16:42:12 +00:00
newgrp Partially revert r226274, the old code was right. 2011-10-16 07:05:43 +00:00
newkey mdoc cleanup 2010-06-02 10:20:23 +00:00
nfsstat Fix nfsstat(1) so that it prints out correct stats for the 2011-08-23 13:44:56 +00:00
nice Not only had I included a syntax / style error, nice.3 is also 2011-02-26 11:20:51 +00:00
nl Make nl(1) build with WARNS=6. 2011-10-14 07:28:39 +00:00
nohup Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
nslookup
nsupdate bmake and other updates necessary for the BIND 9.8.x upgrade. 2011-07-16 11:20:54 +00:00
opieinfo
opiekey
opiepasswd
pagesize Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
passwd Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
paste Mark global functions and/or variables in paste(1) static where possible. 2011-11-06 18:49:53 +00:00
pathchk pathchk(1): Fix the example so it allows arbitrary pathnames. 2010-05-01 22:10:45 +00:00
perror The number after the command is *not* optional. 2010-03-11 12:18:52 +00:00
pr Add missing static keywords to pr(1) 2011-11-06 08:16:24 +00:00
printenv Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
printf printf(1): Document that %c and precision for %b/%s use bytes, not chars. 2011-05-28 14:32:47 +00:00
procstat Make 64-bit procstat output ELF auxiliary vectors for 32-bit processes. 2011-12-12 22:01:33 +00:00
quota Add missing static keywords to quota(1) 2011-11-06 08:16:29 +00:00
rctl Rename resource names to match these in login.conf. 2011-07-14 19:18:17 +00:00
renice Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
rev Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
revoke
rlogin Raise rlogin back to a WARNS level of 6. 2011-04-27 17:36:37 +00:00
rpcgen Use strlcpy(). 2011-07-11 05:31:52 +00:00
rpcinfo Constify a few string variables. While I'm there, also convert usage() to 2011-05-13 22:35:06 +00:00
rs Add missing static keywords to rs(1) 2011-11-06 08:16:35 +00:00
rsh Add __unused 2010-12-20 08:47:43 +00:00
rup Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
ruptime Add missing static keywords to ruptime(1) 2011-11-06 08:16:41 +00:00
rusers Add missing static keywords to rusers(1) 2011-11-06 08:16:47 +00:00
rwall Add missing static keywords to rwall(1) 2011-11-06 08:16:53 +00:00
rwho Add missing static keywords to rwho(1) 2011-11-06 08:16:59 +00:00
script In r225809 the intention was to send VEOF only once if STDIN was not a 2011-10-15 19:08:22 +00:00
sed Reword '}' description to sound more clear. 2011-10-29 06:13:47 +00:00
seq Add missing static keywords to seq(1) 2011-11-06 08:17:05 +00:00
setchannel Apply style(9) and unbreak build. 2010-11-06 15:04:56 +00:00
shar Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
showmount Ensure there is a whitespace after a mount point. 2011-05-24 06:56:40 +00:00
smbutil
sockstat o Make sockstat -6 output more readable for long ipv6 2010-03-30 09:58:21 +00:00
split Add missing static keywords to split(1) 2011-11-06 08:17:11 +00:00
stat Synthesize the change from NetBSD's 1.33: 2011-02-11 05:33:35 +00:00
su Undo r226423. 2011-10-16 09:09:33 +00:00
systat Use integer to store the result of getch(). 2011-10-16 08:36:10 +00:00
tabs
tail Add missing static keywords to tail(1) 2011-11-06 08:17:17 +00:00
talk Add missing static keywords to talk(1) 2011-11-06 08:17:23 +00:00
tar In usr.bin/tar/tree.c, if you really want to poke to NULL, you must use 2011-12-17 01:36:50 +00:00
tcopy Add missing static keywords to tcopy(1) 2011-11-06 08:17:29 +00:00
tee Add missing static keywords to tee(1) 2011-11-06 08:17:35 +00:00
telnet
tftp peeraddr is only used in sizeof() evaluations, so instead of declaring it 2011-07-11 05:57:49 +00:00
time Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
tip Flush the scriptfile whenever we see a non-graphical character to get 2011-05-10 10:58:57 +00:00
top Rework the dynamic per-CPU stats code a bit. Always set 'statics->ncpus' 2011-07-18 21:15:47 +00:00
touch Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
tput Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
tr Add missing static keywords to tr(1) 2011-11-06 08:17:42 +00:00
true Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
truncate Use expand_number(3) from libutil instead of home-grown function to parse 2010-03-03 19:25:28 +00:00
truss Add more static keywords to truss(1) source code. 2011-12-10 18:27:55 +00:00
tset Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
tsort Add missing static keywords to tsort(1) 2011-11-06 08:17:47 +00:00
tty Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
ul Add missing static keywords to ul(1) 2011-11-06 08:17:53 +00:00
uname Add missing static keywords to uname(1) 2011-11-06 08:17:59 +00:00
unexpand Add missing static keywords to unexpand(1) 2011-11-06 08:18:05 +00:00
unifdef Mark global functions and/or variables in unifdef(1) static where possible. 2011-11-06 18:50:00 +00:00
uniq Add missing static keywords to uniq(1) 2011-11-06 08:18:11 +00:00
units Add missing static keywords to units(1) 2011-11-06 08:18:17 +00:00
unvis Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
unzip Fix broken mdoc. 2011-08-01 22:21:18 +00:00
usbhidaction Add missing static keywords to usbhidaction(1) 2011-11-06 08:18:23 +00:00
usbhidctl Add missing static keywords to usbhidctl(1) 2011-11-06 08:18:30 +00:00
users Let the size of the namebuf depend on the size of the ut_user field. 2011-06-18 07:47:15 +00:00
uudecode Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
uuencode Add missing static keywords to uuencode(1) 2011-11-06 08:18:35 +00:00
vacation
vgrind Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
vi
vis Add missing static keywords to vis(1) 2011-11-06 08:18:42 +00:00
vmstat sintrcnt/sintrnames is the address of the size, not the actual size. 2011-07-18 19:42:18 +00:00
w Add missing static keywords to w(1) 2011-11-06 08:18:47 +00:00
wall Add missing static keywords to wall(1) 2011-11-06 08:18:55 +00:00
wc Add missing static keywords to wc(1) 2011-11-06 08:19:00 +00:00
what Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
whereis Mark global functions and/or variables in whereis(1) static where possible. 2011-11-06 18:50:19 +00:00
which Mark global functions and/or variables in which(1) static where possible. 2011-11-06 18:50:26 +00:00
who Add the XSI option -b to show date of the last reboot. 2011-10-28 12:47:37 +00:00
whois Mark global functions and/or variables in whois(1) static where possible. 2011-11-06 18:50:33 +00:00
write Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
wtmpcvt err() takes a printf format. 2010-06-15 04:47:16 +00:00
xargs Discourage from using "cp -r". 2011-03-24 13:52:59 +00:00
xinstall Add missing static keywords to xinstall(1) 2011-11-06 08:19:07 +00:00
xlint lint: Fix lseek() argument order. 2011-11-05 22:25:15 +00:00
xstr Mark global functions and/or variables in xstr(1) static where possible. 2011-11-06 18:50:39 +00:00
xz Upgrade xz to git snapshot as of 20101010 2010-10-11 21:16:50 +00:00
xzdec Remove unneeded WARNS=3 lines. 2011-10-16 08:04:43 +00:00
yacc Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
yes Remove the advertising clause from UCB copyrighted files in usr.bin. This 2010-12-11 08:32:16 +00:00
ypcat
ypmatch
ypwhich Variable 'getmap' is unused. 2010-06-19 16:24:55 +00:00
Makefile Add WITHOUT_UTMPX switch to the build system. 2011-06-17 21:30:21 +00:00
Makefile.amd64 Merge from tbemd: Move to using Makefile.arch to control what's build. 2010-09-13 02:23:03 +00:00
Makefile.arm Merge from tbemd: Move to using Makefile.arch to control what's build. 2010-09-13 02:23:03 +00:00
Makefile.i386 Merge from tbemd: Move to using Makefile.arch to control what's build. 2010-09-13 02:23:03 +00:00
Makefile.ia64 Merge from tbemd: Move to using Makefile.arch to control what's build. 2010-09-13 02:23:03 +00:00
Makefile.inc
Makefile.powerpc Merge from tbemd: Move to using Makefile.arch to control what's build. 2010-09-13 02:23:03 +00:00
Makefile.sparc64 Merge from tbemd: Move to using Makefile.arch to control what's build. 2010-09-13 02:23:03 +00:00