freebsd-src/usr.bin
Stefan Eßer 9feba5ab90 fetch: MFC: make -S argument accept values > 2GB
Use strtoll() to parse the argument of the -S option.

FreeBSD has supported 64 bit file offsets for more than 25 years on
all architectures and off_t is a 64 bit integer type for that reason.

While strtol() returns a 64 bit value on 64 LP64 architectures, it
is limit to 32 bit on e.g. i386. The strtoll() function returns a 64
but result on all supported architectures and therefore supports the
possible file lengths and file offsets on 32 bit archtectures.

Reported by:	antoine

(cherry picked from commit 32066c96fa)
2022-06-07 02:10:43 +07:00
..
addr2line
alias
apply MFC r337504: apply(1): Fix magic number substitution with a magic space 2018-08-15 01:24:43 +00:00
ar ar: remove invalid extra param in bsdar_warnc calls 2021-08-17 21:32:36 -04:00
asa MFC r326276: 2018-03-05 07:26:05 +00:00
at MFC r303540: 2018-03-08 07:17:20 +00:00
atm MFC r313653: 2017-02-21 02:24:45 +00:00
awk MFC r314942: 2017-03-26 18:08:55 +00:00
banner Revert r330897: 2018-03-29 02:50:57 +00:00
basename MFC r308432, r308657: Capsicumize some trivial stdio programs 2018-04-13 03:30:10 +00:00
bc MFC: r342964 2019-01-27 13:58:06 +00:00
biff Revert r330897: 2018-03-29 02:50:57 +00:00
bluetooth MFC r326276: 2018-03-05 07:26:05 +00:00
bmake MFC r338925: 2018-10-08 22:38:28 +00:00
brandelf MFC r326276: 2018-03-05 07:26:05 +00:00
bsdcat libarchive: import changes from upstream 2022-02-23 12:36:56 +01:00
bsdiff MFC r352742: bspatch: add integer overflow checks 2019-10-03 13:03:48 +00:00
bzip2 MFC r315170: 2017-05-30 04:27:05 +00:00
bzip2recover MFC r315170: 2017-05-30 04:27:05 +00:00
c89 MFC r326276: 2018-03-05 07:26:05 +00:00
c99 MFC r326276: 2018-03-05 07:26:05 +00:00
caesar
calendar MFC: Fix calendar -a processing of files included in the user's home directory 2021-01-01 01:46:48 +01:00
cap_mkdb Revert r330897: 2018-03-29 02:50:57 +00:00
catman Instead of ignoring the EEXIST from link(), unconditionally unlink 2016-05-13 05:49:02 +00:00
chat MFC r311160, r311210, r311288, r311292, r311298, r311340 2017-02-02 18:27:20 +00:00
checknr
chkey MFC r315170: 2017-05-30 04:27:05 +00:00
chpass MFC r367757, r367756, r367759, r367769: 2020-12-01 09:55:28 +00:00
cksum Revert r330897: 2018-03-29 02:50:57 +00:00
clang MFC r367304: 2020-12-02 21:39:54 +00:00
cmp MFC r333157: cmp(1): Provide some long options 2018-06-27 21:00:09 +00:00
col Revert r330897: 2018-03-29 02:50:57 +00:00
colcrt
colldef MFC r326276: 2018-03-05 07:26:05 +00:00
colrm Revert r330897: 2018-03-29 02:50:57 +00:00
column Revert r330897: 2018-03-29 02:50:57 +00:00
comm Revert r330897: 2018-03-29 02:50:57 +00:00
compile_et MFC r315170: 2017-05-30 04:27:05 +00:00
compress Revert r330897: 2018-03-29 02:50:57 +00:00
cpio libarchive: import changes from upstream 2022-02-23 12:36:56 +01:00
cpuset MFC r335921: 2018-07-06 19:10:11 +00:00
csplit MFC r326276: 2018-03-05 07:26:05 +00:00
ctags Revert r330897: 2018-03-29 02:50:57 +00:00
ctlstat MFC r344844: Flush stdout after each iteration. 2019-03-13 20:29:10 +00:00
cut Revert r330897: 2018-03-29 02:50:57 +00:00
cxxfilt
dc MFC r308432, r308657: Capsicumize some trivial stdio programs 2018-04-13 03:30:10 +00:00
diff MFC r357875: diff: fix segfault with --tabsize and no/malformed argument 2020-04-27 22:50:08 +00:00
dirname MFC r308432, r308657: Capsicumize some trivial stdio programs 2018-04-13 03:30:10 +00:00
dpv MFC r330878-r330879, r330939, r330948: Man-page updates 2018-06-20 06:11:51 +00:00
drill MFC r315170: 2017-05-30 04:27:05 +00:00
dtc MFC r347445, r353961: dtc build issues 2020-02-21 04:38:59 +00:00
du MFC r346571,r346572: 2019-04-29 19:36:46 +00:00
ee MFC r315170: 2017-05-30 04:27:05 +00:00
elf2aout MFC r326276: 2018-03-05 07:26:05 +00:00
elfcopy MFC r315170: 2017-05-30 04:27:05 +00:00
elfdump MFC r334363: elfdump: chase ABI tag note name change from r232832 2018-06-19 17:11:53 +00:00
enigma
env MFC 360283: 2020-07-26 09:57:43 +00:00
etdump MFC r333007 2018-04-25 18:58:38 +00:00
expand Revert r330897: 2018-03-29 02:50:57 +00:00
factor MFC r31956[12]: Teach primes(6) to enumerate primes up to 2^64 - 1. 2017-06-22 05:26:08 +00:00
false Revert r330897: 2018-03-29 02:50:57 +00:00
fetch fetch: MFC: make -S argument accept values > 2GB 2022-06-07 02:10:43 +07:00
file MFC r315170: 2017-05-30 04:27:05 +00:00
file2c
find MFC 360074: 2020-04-22 13:53:22 +00:00
finger Revert r330897: 2018-03-29 02:50:57 +00:00
fmt MFC r326434: 2018-03-05 08:49:11 +00:00
fold Revert r330897: 2018-03-29 02:50:57 +00:00
fortune fortune: correct typo in Merrill Markoe's last name 2019-09-05 15:01:24 +00:00
from Revert r330897: 2018-03-29 02:50:57 +00:00
fstat MFC 362324: 2020-07-02 16:18:32 +00:00
fsync MFC r326276: 2018-03-05 07:26:05 +00:00
ftp MFC r315170: 2017-05-30 04:27:05 +00:00
gcore Revert r330897: 2018-03-29 02:50:57 +00:00
gencat MFC r326276: 2018-03-05 07:26:05 +00:00
getaddrinfo DIRDEPS_BUILD: Connect new directories. 2017-05-09 20:43:57 +00:00
getconf MFC r346571,r346572: 2019-04-29 19:36:46 +00:00
getent MFC r326276: 2018-03-05 07:26:05 +00:00
getopt MFC r308432, r308657: Capsicumize some trivial stdio programs 2018-04-13 03:30:10 +00:00
gprof MFC r359680: mail/gprof/tip: tap with the ugly stick 2020-04-10 00:27:19 +00:00
grdc
grep MFC bsdgrep(1) fixes: r320414, r328559, r332805-r332806, r332809, r332832, 2019-11-11 19:54:08 +00:00
gzip MFC r342845,342846: Port NetBSD improvements: 2019-01-21 06:52:35 +00:00
head MFC r332372-r332374: tail(1)/head(1) compatibility long options 2018-04-13 17:57:00 +00:00
hesinfo
hexdump MFC r358553: hexdump: tests: take into account byte order 2020-03-25 00:31:42 +00:00
host MFC r315170: 2017-05-30 04:27:05 +00:00
iconv iconv(1): Add EXAMPLE 2020-12-01 18:12:25 +00:00
id Revert r330897: 2018-03-29 02:50:57 +00:00
ident MFC r315776: 2017-03-30 06:20:24 +00:00
indent indent(1) in stable/11 is known to be incomplete or incorrect in some 2018-06-02 21:50:00 +00:00
ipcrm MFC r329348 (by brooks): 2019-05-20 16:31:45 +00:00
ipcs MFC r329348 (by brooks): 2019-05-20 16:31:45 +00:00
iscsictl MFC r330741: 2018-04-16 17:22:09 +00:00
join Revert r330897: 2018-03-29 02:50:57 +00:00
jot MFC r346255: 2019-09-05 16:53:34 +00:00
kdump MFC r358109: kdump: decode SHM_ANON as first arg to legacy shm_open(2) 2020-02-22 21:44:00 +00:00
keylogin
keylogout
killall MFC r326276: 2018-03-05 07:26:05 +00:00
ktrace Revert r330897: 2018-03-29 02:50:57 +00:00
ktrdump MFC 339620: Add a "live" mode to ktrdump. 2019-01-02 19:48:17 +00:00
lam Revert r330897: 2018-03-29 02:50:57 +00:00
last MFC r351413,351459,351467: unbreak last(1) for 8-bit locales 2019-09-06 05:34:31 +00:00
lastcomm Revert r330897: 2018-03-29 02:50:57 +00:00
ldd MFC r362152: 2020-06-20 04:41:04 +00:00
leave Revert r330897: 2018-03-29 02:50:57 +00:00
less less: upgrade to v581.2. 2021-05-08 19:32:08 -07:00
lessecho MFC r315170: 2017-05-30 04:27:05 +00:00
lesskey MFC r315170: 2017-05-30 04:27:05 +00:00
lex MFC r357347: 2020-02-04 19:42:57 +00:00
limits MFC r328212: 2018-01-28 00:26:05 +00:00
locale MFC r326276: 2018-03-05 07:26:05 +00:00
localedef MFC r362569 (by jkim): 2020-07-25 23:08:51 +00:00
locate MFC -fno-common fixes: r359389, r359394, r359397-r359399, r359403-r359404, 2020-04-09 20:38:36 +00:00
lock Revert r330897: 2018-03-29 02:50:57 +00:00
lockf MFC r345318: 2019-03-27 08:55:59 +00:00
logger Revert r330897: 2018-03-29 02:50:57 +00:00
login Revert r330897: 2018-03-29 02:50:57 +00:00
logins MFC r326276: 2018-03-05 07:26:05 +00:00
logname MFC r308432, r308657: Capsicumize some trivial stdio programs 2018-04-13 03:30:10 +00:00
look Revert r330897: 2018-03-29 02:50:57 +00:00
lorder Revert r330897: 2018-03-29 02:50:57 +00:00
lsvfs
lzmainfo MFC r315170: 2017-05-30 04:27:05 +00:00
m4 MFC r352065-r352070 2019-09-13 07:22:09 +00:00
mail MFC r359680: mail/gprof/tip: tap with the ugly stick 2020-04-10 00:27:19 +00:00
makewhatis
man MFC r326276: 2018-03-05 07:26:05 +00:00
mandoc MFC r313958, r319717, r321810 2017-08-08 11:35:27 +00:00
mesg Revert r330897: 2018-03-29 02:50:57 +00:00
minigzip MFC r347244: 2019-05-25 01:58:00 +00:00
ministat
mkcsmapper MFC r326276: 2018-03-05 07:26:05 +00:00
mkcsmapper_static MFC r315170: 2017-05-30 04:27:05 +00:00
mkdep Revert r330897: 2018-03-29 02:50:57 +00:00
mkesdb MFC r326276: 2018-03-05 07:26:05 +00:00
mkesdb_static MFC r315170: 2017-05-30 04:27:05 +00:00
mkfifo Revert r330897: 2018-03-29 02:50:57 +00:00
mkimg MFC r363140: 2020-07-14 18:31:15 +00:00
mklocale Revert r330897: 2018-03-29 02:50:57 +00:00
mkstr Revert r330897: 2018-03-29 02:50:57 +00:00
mktemp MFC r326276: 2018-03-05 07:26:05 +00:00
mkuzip MFC r326276: 2018-03-05 07:26:05 +00:00
morse MFC r327514,r327521,r327614,r327615,r327616,r327623: 2018-03-15 09:38:18 +00:00
msgs Revert r330897: 2018-03-29 02:50:57 +00:00
mt MFC r368525: 2020-12-15 20:02:40 +00:00
nc MFC r315170: 2017-05-30 04:27:05 +00:00
ncal MFC r326276: 2018-03-05 07:26:05 +00:00
netstat MFC r354639: 2020-01-07 16:54:53 +00:00
newgrp MFC r326276: 2018-03-05 07:26:05 +00:00
newkey MFC r343909: 2019-02-16 00:37:08 +00:00
nfsstat MFC: r320323 2017-07-14 21:43:57 +00:00
nice Revert r330897: 2018-03-29 02:50:57 +00:00
nl MFC r326276: 2018-03-05 07:26:05 +00:00
nm
nohup Revert r330897: 2018-03-29 02:50:57 +00:00
numactl Don't repeat the the word 'the' 2016-05-17 12:52:31 +00:00
number
ofed MFC r336569: 2018-08-12 08:45:23 +00:00
opieinfo MFC r315170: 2017-05-30 04:27:05 +00:00
opiekey MFC r315170: 2017-05-30 04:27:05 +00:00
opiepasswd MFC r315170: 2017-05-30 04:27:05 +00:00
pagesize Revert r330897: 2018-03-29 02:50:57 +00:00
pamtest MFC r315170: 2017-05-30 04:27:05 +00:00
passwd MFC r326276: 2018-03-05 07:26:05 +00:00
paste Revert r330897: 2018-03-29 02:50:57 +00:00
patch usr.bin/patch: remove unneeded header. 2021-05-15 21:43:24 -07:00
pathchk MFC r326276: 2018-03-05 07:26:05 +00:00
perror MFC r326276: 2018-03-05 07:26:05 +00:00
pom
pr Revert r330897: 2018-03-29 02:50:57 +00:00
primes MFC r31956[12]: Teach primes(6) to enumerate primes up to 2^64 - 1. 2017-06-22 05:26:08 +00:00
printenv MFC r308432, r308657: Capsicumize some trivial stdio programs 2018-04-13 03:30:10 +00:00
printf MFC r350425: printf(1): Note that \c only works in %b strings 2019-08-05 20:21:35 +00:00
proccontrol MFC r351774: 2019-09-10 09:57:24 +00:00
procstat MFC r357268: 2020-02-04 19:31:01 +00:00
protect MFC r326276: 2018-03-05 07:26:05 +00:00
quota MFC r352567: 2019-09-21 14:06:16 +00:00
random Fix a (false positive?) Argument cannot be negative coverity defect. 2016-06-08 02:14:05 +00:00
rctl MFC r334208: 2018-06-27 03:29:36 +00:00
readelf Sync up elftoolchain with head, except for the capsicum-related commits, 2020-11-07 23:57:57 +00:00
renice Revert r330897: 2018-03-29 02:50:57 +00:00
resizewin MFC r320363: 2017-10-04 11:39:44 +00:00
rev Revert r330897: 2018-03-29 02:50:57 +00:00
revoke MFC r326276: 2018-03-05 07:26:05 +00:00
rlogin MFC r320644: 2017-07-04 15:53:23 +00:00
rpcgen MFC r353569: 2019-10-23 17:28:35 +00:00
rpcinfo MFC r316500: 2017-04-26 14:43:21 +00:00
rs Revert r330897: 2018-03-29 02:50:57 +00:00
rsh MFC r324212: 2017-11-06 12:44:26 +00:00
rup Revert r330897: 2018-03-29 02:50:57 +00:00
ruptime MFC: r342965 2020-04-11 07:46:38 +00:00
rusers Revert r330897: 2018-03-29 02:50:57 +00:00
rwall Revert r330897: 2018-03-29 02:50:57 +00:00
rwho Revert r330897: 2018-03-29 02:50:57 +00:00
script Revert r330897: 2018-03-29 02:50:57 +00:00
sdiff MFC r316637-r316638 2017-04-11 16:32:46 +00:00
sed Disable mismerged tests committed in r362687 2020-06-27 22:51:15 +00:00
send-pr
seq MFC r330086, r333155: seq(1) improvements 2018-06-27 21:03:05 +00:00
setchannel MFC r326276: 2018-03-05 07:26:05 +00:00
shar MFC r343633: 2019-02-07 21:22:01 +00:00
showmount Revert r330897: 2018-03-29 02:50:57 +00:00
size
smbutil MFC r315170: 2017-05-30 04:27:05 +00:00
sockstat MFC r335921: 2018-07-06 19:10:11 +00:00
soelim MFC r315776: 2017-03-30 06:20:24 +00:00
sort MFC r335404: sort(1): Fix -m when only implicit stdin is used for input 2018-06-27 21:11:28 +00:00
split Revert r330897: 2018-03-29 02:50:57 +00:00
ssh-copy-id MFC r326276: 2018-03-05 07:26:05 +00:00
stat MFC r326276: 2018-03-05 07:26:05 +00:00
stdbuf MFC r326276: 2018-03-05 07:26:05 +00:00
strings
su MFC 359340: 2020-03-27 09:55:53 +00:00
svn Update Subversion to 1.14.1 LTS. See contrib/subversion/CHANGES for a 2021-02-18 19:18:50 +01:00
systat systat.1: Remove Tn macros 2021-04-17 21:03:09 +02:00
tabs MFC r326276: 2018-03-05 07:26:05 +00:00
tail MFC 359229: 2020-03-25 08:51:46 +00:00
talk Revert r330897: 2018-03-29 02:50:57 +00:00
tar libarchive: import changes from upstream 2022-02-23 12:36:56 +01:00
tcopy Revert r330897: 2018-03-29 02:50:57 +00:00
tee Revert r330897: 2018-03-29 02:50:57 +00:00
telnet MFC r315170: 2017-05-30 04:27:05 +00:00
tests
tftp MFC r336609: 2019-03-21 21:45:18 +00:00
time Revert r330897: 2018-03-29 02:50:57 +00:00
timeout MFC r314886,r314943,r314944: 2017-03-22 17:53:25 +00:00
tip MFC r359680: mail/gprof/tip: tap with the ugly stick 2020-04-10 00:27:19 +00:00
top MFC r362711: 2020-07-05 06:51:39 +00:00
touch Revert r330897: 2018-03-29 02:50:57 +00:00
tput Revert r330897: 2018-03-29 02:50:57 +00:00
tr Revert r330897: 2018-03-29 02:50:57 +00:00
true Revert r330897: 2018-03-29 02:50:57 +00:00
truncate MFC r326276: 2018-03-05 07:26:05 +00:00
truss stable/ branches: commit missing part of patch 2019-09-03 21:11:04 +00:00
tset Revert r330897: 2018-03-29 02:50:57 +00:00
tsort Revert r330897: 2018-03-29 02:50:57 +00:00
tty Revert r330897: 2018-03-29 02:50:57 +00:00
ul Revert r330897: 2018-03-29 02:50:57 +00:00
uname MFC r367640: 2020-11-20 10:48:19 +00:00
unexpand Revert r330897: 2018-03-29 02:50:57 +00:00
unifdef MFC r326276: 2018-03-05 07:26:05 +00:00
uniq MFC r333156: uniq(1): Add some long options 2018-06-27 20:55:49 +00:00
units MFC r343259: 2019-01-24 17:55:33 +00:00
unvis MFC r315170: 2017-05-30 04:27:05 +00:00
unzip MFC r326276: 2018-03-05 07:26:05 +00:00
usbhidaction MFC r367097: 2020-11-11 11:26:36 +00:00
usbhidctl MFC r351167: 2019-09-05 09:35:41 +00:00
users MFC r311581: 2018-03-05 08:27:29 +00:00
uudecode Revert r330897: 2018-03-29 02:50:57 +00:00
uuencode Revert r330897: 2018-03-29 02:50:57 +00:00
vacation MFC r315170: 2017-05-30 04:27:05 +00:00
vgrind Revert r330897: 2018-03-29 02:50:57 +00:00
vi MFC r335733: 2018-08-08 18:05:14 +00:00
vis MFC r315170: 2017-05-30 04:27:05 +00:00
vmstat MFC r322252 by manu: vmstat: Always emit a space after the free-memory column 2020-01-26 04:54:17 +00:00
vtfontcvt MFC r351425: vtfontcvt: simplify rshift_row 2019-09-03 16:17:01 +00:00
w Revert r330897: 2018-03-29 02:50:57 +00:00
wall MFC r309925, r309931, r309933, r310035, r310278, r310310, r310311, 2018-06-13 13:41:23 +00:00
wc MFC r359801: wc(1): document SIGINFO handling in the manual page. 2020-04-16 11:49:13 +00:00
what Revert r330897: 2018-03-29 02:50:57 +00:00
whereis MFC r343408: Silence Clang Scan warnings regarding unsafe use of strcp(). 2019-02-14 15:39:17 +00:00
which MFC r326276: 2018-03-05 07:26:05 +00:00
who MFC r326276: 2018-03-05 07:26:05 +00:00
whois Revert r330897: 2018-03-29 02:50:57 +00:00
write Revert r330897: 2018-03-29 02:50:57 +00:00
xargs Revert r330897: 2018-03-29 02:50:57 +00:00
xinstall MFC r363064,363067,363081,363136: optimize install(1) a bit. 2020-08-11 11:33:58 +00:00
xlint Fix with external GCC after r300886. 2016-05-29 01:15:15 +00:00
xo Import libxo-0.8.4 from HEAD into stable/11 2017-08-07 17:23:44 +00:00
xstr Revert r330897: 2018-03-29 02:50:57 +00:00
xz MFC r315170: 2017-05-30 04:27:05 +00:00
xzdec MFC r315170: 2017-05-30 04:27:05 +00:00
yacc MFC: r313105, r313106 2017-05-31 19:16:22 +00:00
yes MFC r319897-r319898, r319904: Improve yes' throughput 2018-04-13 03:32:18 +00:00
ypcat MFC r326276: 2018-03-05 07:26:05 +00:00
ypmatch MFC r326276: 2018-03-05 07:26:05 +00:00
ypwhich MFC r326276: 2018-03-05 07:26:05 +00:00
Makefile MFC r367304: 2020-12-02 21:39:54 +00:00
Makefile.amd64
Makefile.arm
Makefile.i386
Makefile.inc
Makefile.powerpc
Makefile.sparc64