summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/libarchive/libarchive/0004-Patch-from-upstream-rev-2514.patch
blob: eaa9ad0813df0141b7c6fcb3cdc35787599dc791 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
libarchive: Backport patch from upstream (rev 2514)

Enable version stripping code in joliet extension support for iso9660.

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=587316

Upstream-Status: Backport

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>

diff --git a/libarchive/archive_read_support_format_iso9660.c b/libarchive/archive_read_support_format_iso9660.c
index fdef3fb..8dcfeb4 100644
--- a/libarchive/archive_read_support_format_iso9660.c
+++ b/libarchive/archive_read_support_format_iso9660.c
@@ -1755,7 +1755,6 @@ parse_file_info(struct archive_read *a, struct file_info *parent,
 		}
 		*wp = L'\0';
 
-#if 0 /* untested code, is it at all useful on Joliet? */
 		/* trim trailing first version and dot from filename.
 		 *
 		 * Remember we where in UTF-16BE land!
@@ -1775,7 +1774,6 @@ parse_file_info(struct archive_read *a, struct file_info *parent,
 		/* Chop off trailing '.' from filenames. */
 		if (*(wp-1) == '.')
 			*(--wp) = L'\0';
-#endif
 
 		/* store the result in the file name field. */
 		archive_strappend_w_utf8(&file->name, wbuff);
-- 
1.7.1