Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Sep 2011 05:52:34 +0000 (UTC)
From:      Tim Kientzle <kientzle@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r225525 - head/lib/libarchive
Message-ID:  <201109130552.p8D5qYZF062123@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kientzle
Date: Tue Sep 13 05:52:34 2011
New Revision: 225525
URL: http://svn.freebsd.org/changeset/base/225525

Log:
  Fix cpio on ARM.
  
  PR:		bin/160430
  Submitted by:	Ian Lepore
  Approved by:	re (Kostik Belousov)
  MFC after:	7 days

Modified:
  head/lib/libarchive/archive_read_support_format_cpio.c
  head/lib/libarchive/archive_write_set_format_cpio.c

Modified: head/lib/libarchive/archive_read_support_format_cpio.c
==============================================================================
--- head/lib/libarchive/archive_read_support_format_cpio.c	Tue Sep 13 02:46:22 2011	(r225524)
+++ head/lib/libarchive/archive_read_support_format_cpio.c	Tue Sep 13 05:52:34 2011	(r225525)
@@ -54,7 +54,7 @@ struct cpio_bin_header {
 	unsigned char	c_mtime[4];
 	unsigned char	c_namesize[2];
 	unsigned char	c_filesize[4];
-};
+} __packed;
 
 struct cpio_odc_header {
 	char	c_magic[6];
@@ -68,7 +68,7 @@ struct cpio_odc_header {
 	char	c_mtime[11];
 	char	c_namesize[6];
 	char	c_filesize[11];
-};
+} __packed;
 
 struct cpio_newc_header {
 	char	c_magic[6];
@@ -85,7 +85,7 @@ struct cpio_newc_header {
 	char	c_rdevminor[8];
 	char	c_namesize[8];
 	char	c_crc[8];
-};
+} __packed;
 
 struct links_entry {
         struct links_entry      *next;

Modified: head/lib/libarchive/archive_write_set_format_cpio.c
==============================================================================
--- head/lib/libarchive/archive_write_set_format_cpio.c	Tue Sep 13 02:46:22 2011	(r225524)
+++ head/lib/libarchive/archive_write_set_format_cpio.c	Tue Sep 13 05:52:34 2011	(r225525)
@@ -74,7 +74,7 @@ struct cpio_header {
 	char	c_mtime[11];
 	char	c_namesize[6];
 	char	c_filesize[11];
-};
+} __packed;
 
 /*
  * Set output format to 'cpio' format.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201109130552.p8D5qYZF062123>