summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/libarchive/libarchive/0005-Patch-from-upstream-rev-2520.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/libarchive/libarchive/0005-Patch-from-upstream-rev-2520.patch')
-rw-r--r--meta/recipes-extended/libarchive/libarchive/0005-Patch-from-upstream-rev-2520.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/meta/recipes-extended/libarchive/libarchive/0005-Patch-from-upstream-rev-2520.patch b/meta/recipes-extended/libarchive/libarchive/0005-Patch-from-upstream-rev-2520.patch
new file mode 100644
index 0000000000..dd8ac6a876
--- /dev/null
+++ b/meta/recipes-extended/libarchive/libarchive/0005-Patch-from-upstream-rev-2520.patch
@@ -0,0 +1,31 @@
1libarchive: Backport patch from upstream (rev 2520)
2
3Fix version/dot stripping code in joliet extension of iso9660.
4
5Upstream-Status: Backport
6
7Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
8
9diff --git a/libarchive/archive_read_support_format_iso9660.c b/libarchive/archive_read_support_format_iso9660.c
10index 8dcfeb4..2d3a855 100644
11--- a/libarchive/archive_read_support_format_iso9660.c
12+++ b/libarchive/archive_read_support_format_iso9660.c
13@@ -1766,13 +1766,13 @@ parse_file_info(struct archive_read *a, struct file_info *parent,
14 * *, /, :, ;, ? and \.
15 */
16 /* Chop off trailing ';1' from files. */
17- if (*(wp-2) == ';' && *(wp-1) == '1') {
18+ if (*(wp-2) == L';' && *(wp-1) == L'1') {
19 wp-=2;
20 *wp = L'\0';
21 }
22
23 /* Chop off trailing '.' from filenames. */
24- if (*(wp-1) == '.')
25+ if (*(wp-1) == L'.')
26 *(--wp) = L'\0';
27
28 /* store the result in the file name field. */
29--
301.7.1
31