freebsd-dev/bin
Kyle Evans b63d2d683d sh: fix read builtin on 32-bit systems
Specifically, any system with a 32-bit size_t; -residue is calculated as a
32-bit *then* promoted to the 64-bit off_t and the result is ultimately
wrong. This resulted in what would appear to be truncated output, as only
the first line would be read.

Correct it by just making residue an off_t to begin with, since this is what
lseek will take anyways.

Reported by:	antoine, dim
Triaged by:	cem
Tested by:	kevans
X-MFC-With:	r358152
2020-02-22 03:14:05 +00:00
..
cat
chflags
chio
chmod
cp
csh
date
dd
df
domainname
echo
ed
expr
freebsd-version
getfacl
hostname
kenv
kill
ln
ls
mkdir
mv
pax
pkill
ps
pwait Remove unused include. 2020-02-02 20:51:28 +00:00
pwd
realpath
rm
rmail
rmdir
setfacl
sh sh: fix read builtin on 32-bit systems 2020-02-22 03:14:05 +00:00
sleep
stty
sync
test
tests
uuidgen
Makefile
Makefile.inc