1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-01 08:27:59 +00:00
freebsd/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 Allow building bin/cat on non-FreeBSD systems 2020-01-16 14:15:00 +00:00
chflags
chio
chmod
cp
csh
date
dd Add iflag=fullblock to dd 2019-09-30 22:00:48 +00:00
df
domainname
echo
ed
expr
freebsd-version
getfacl
hostname
kenv
kill
ln
ls Update Makefile.depend files 2019-12-11 17:37:53 +00:00
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