[Top][All Lists]

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

[Bug-cpio] Large file archiving problem

From: Ladislav Michnovič
Subject: [Bug-cpio] Large file archiving problem
Date: Thu, 6 Mar 2008 12:14:58 +0100


I have a problem which is reproducible with the latest 2.9.90 version
and also with older versions.
echo /tmp/bigfile  | cpio -ocv >/dev/null
cpio: /tmp/bigfile: field width not sufficient for storing file size
The bigfile has 9885665280 bytes.
I thought LFS should handle this.

A colleague of mine has suggested this patch

--- copyout.c.old       2008-02-20 14:27:39.000000000 -0800
+++ copyout.c   2008-02-21 13:52:26.000000000 -0800
@@ -126,7 +126,7 @@
   to_ascii_or_warn (p, file_hdr->c_mtime, 8, LG_16, file_hdr->c_name,
                     "modification time");
   p += 8;
-  if (to_ascii_or_error (p, file_hdr->c_filesize, 8, LG_16, file_hdr->c_name,
+  if (to_ascii_or_error (p, file_hdr->c_filesize, 9, LG_16, file_hdr->c_name,
                          "file size"))
     return 1;
   p += 8;

but I'm not sure if this solution is a good idea.
What is your opinion?

Regards Ladislav.

reply via email to

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