On Nov 16, 2007 5:35 PM, Jörg Begemann <[EMAIL PROTECTED]> wrote: > > > > Hello, > > I have found something which might be a bug in cpio. > > Using version 2.9 of cpio I copied a complete partition > using the command > find . -depth -print | cpio -pdmuV /mnt > and I received an warning: > cpio: File xxxxx grew, 4294967296 new bytes not copied > Looking at file xxxxx I verified, that it was completly > and correctly copied. The file xxxxx has a size of nearly > 6 GB. > > Looking closer to the source I found in util.c: > > warn_if_file_changed (char *file_name, unsigned long old_file_size, > off_t old_file_mtime) > .... > if (new_file_stat.st_size > old_file_size) > .... > > I suppose the if-condition is the point of problem because > of comparing two different types. > > I compiled cpio on my 32-bit SuSE linux system with support for large > files.
Hi. Which version of SuSE do you have? I have fixed this issue in cpio 2.9 for 10.3. See the changelog of the cpio RPM: --- Wed Jul 25 13:14:53 CEST 2007 - [EMAIL PROTECTED] - fixed types of variables for LFS support (*lfs_correction.patch) --- and reported here in this ML. SuSE 10.2 has cpio 2.6, which is not affected. Regards Ladislav.
_______________________________________________ Bug-cpio mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-cpio
