[email protected]
[Top] [All Lists]

Bug#358990: marked as forwarded (cpio -o -H ustar may create malformed a

Subject: Bug#358990: marked as forwarded cpio -o -H ustar may create malformed archive, data dependent
From: Debian Bug Tracking System
Date: Sat, 14 Apr 2007 15:27:03 +0000
Your message dated Sat, 14 Apr 2007 11:25:52 -0400
with message-id <[email protected]>
has caused the Debian Bug report #358990,
regarding cpio -o -H ustar may create malformed archive, data dependent
to be marked as having been forwarded to the upstream software
author(s) [email protected]

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Subject: Re: Bug#358990: cpio: Patch to fix bug
From: Clint Adams
Date: Sat, 14 Apr 2007 11:25:52 -0400
> This bug was created by one of the debian changes (ie a change
> in cpio_2.6-11.diff.gz).  The attached patch fixes it.

Patch with offsets changed:

--- cpio-2.7.orig/src/copyout.c
+++ cpio-2.7/src/copyout.c
@@ -780,8 +780,9 @@
                      file_hdr.c_mode = (file_stat.st_mode & 07777);
                      file_hdr.c_mode |= CP_IFREG;
                      file_hdr.c_tar_linkname = otherfile;
-                     if (write_out_header (&file_hdr, out_file_des))
-                       continue;
+                     file_hdr.c_filesize = 0;
+                     write_out_header (&file_hdr, out_file_des);
+                     continue;
                      break;
                    }
                  add_inode (file_hdr.c_ino, orig_file_name, 

--- End Message ---
<Prev in Thread] Current Thread [Next in Thread>
  • Bug#358990: marked as forwarded (cpio -o -H ustar may create malformed archive, data dependent), Debian Bug Tracking System <=