Re: split refuses to split files when size is 4500m

Gregor Jackie <[email protected]> Wed, 9 Jul 2003 09:14:12 +0100
Newsgroups gmane.comp.gnu.textutils.bugs
Organization lsp
Message-ID <200307090914.15357@gjs>
On Wednesday 09 of July 2003 06:07, Bob Proulx wrote:
> Gregor Jackie wrote:
> > jackie:/home/backups/EV1# split -b 4500m ev1.cpio.bz2
> > split: 4500m: invalid number of bytes
> > Try `split --help' for more information.
> > jackie:/home/backups/EV1# ls -lh ev1.cpio.bz2
> > -rw-r--r--    1 root     staff        7.8G Jun 11 07:46 ev1.cpio.bz2
>
> Thanks for the report.  Without even looking at the code I am sure you
> are overflowing the 32-bit long integer native on 32-bit systems.  Do
> you have access to a 64-bit machine?
I am sorry, but i don't. Well, but still i can ask somebody that does to test 
it out.
What i don't like, is first - that size is kept as signed int, since it does 
not make any sense to me. File size cannot be negative. And errors should be 
kept somewhere else, than in file size variable.

-- 
Jackie
Unix system administrator and security advisor