From 3a8d026e8e859ff4c9aa813d5f1eb2afa5663e78 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 4 Mar 2013 00:03:49 -0800 Subject: Mon Mar 4 00:03:48 PST 2013 --- ...tree-fix-line-filename-length-calculation.patch | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 core/libarchive/0001-mtree-fix-line-filename-length-calculation.patch (limited to 'core/libarchive/0001-mtree-fix-line-filename-length-calculation.patch') diff --git a/core/libarchive/0001-mtree-fix-line-filename-length-calculation.patch b/core/libarchive/0001-mtree-fix-line-filename-length-calculation.patch new file mode 100644 index 000000000..a255f2cf2 --- /dev/null +++ b/core/libarchive/0001-mtree-fix-line-filename-length-calculation.patch @@ -0,0 +1,29 @@ +From e65bf287f0133426b26611fe3e80b51267987106 Mon Sep 17 00:00:00 2001 +From: Dave Reisner +Date: Thu, 21 Feb 2013 19:01:06 -0500 +Subject: [PATCH] mtree: fix line filename length calculation. Fixes #301. + Signed-off-by: Andres Mejia + +--- + libarchive/archive_write_set_format_mtree.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/libarchive/archive_write_set_format_mtree.c b/libarchive/archive_write_set_format_mtree.c +index 9c0613c..f37f723 100644 +--- a/libarchive/archive_write_set_format_mtree.c ++++ b/libarchive/archive_write_set_format_mtree.c +@@ -1855,9 +1855,9 @@ mtree_entry_setup_filenames(struct archive_write *a, struct mtree_entry *file, + return (ret); + } + +- /* Make a basename from dirname and slash */ ++ /* Make a basename from file->parentdir.s and slash */ + *slash = '\0'; +- file->parentdir.length = slash - dirname; ++ file->parentdir.length = slash - file->parentdir.s; + archive_strcpy(&(file->basename), slash + 1); + return (ret); + } +-- +1.8.1.4 + -- cgit v1.2.3-54-g00ecf