When attempting to tar a larger than 2GB file, tar immediately returns, having created 10240 byte file. tar tvf file.tar reveals that file size is inidcated as negative! Fix: Probably 32bit integers used inside tar & cpio when calculating filesizes. How-To-Repeat: Create >2gb file tar cvf file.tar 2gbfile.data tar tvf file.tar
I have investigated TAR code in create.c. Problem is that counter is a 32 bit long (save_totsize) see line 198. Should be of type off_t to deal with numbers > 2,147,483,647 Probably similar problem with cpio. -- Andrew
Responsible Changed From-To: freebsd-bugs->mjacob I'll take it.
Responsible Changed From-To: mjacob->freebsd-bugs give back to whomever has more time to do the actual right thing
Please close this PR. It is better described at http://www.freebsd.org/cgi/query-pr.cgi?pr=gnu/24903 Thanks Marc
State Changed From-To: open->closed Several other PRs deal with this same problem, e.g. 24903.