bug-cpio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-cpio] wrong warning about File grew, 4294967296 new bytes not c


From: Ladislav Michnovič
Subject: Re: [Bug-cpio] wrong warning about File grew, 4294967296 new bytes not copied
Date: Thu, 24 Jan 2008 15:47:06 +0100

On Nov 16, 2007 5:35 PM, Jörg Begemann <address@hidden> 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 - address@hidden
- 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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]