aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/busybox/busybox/unbreak_noncompressed_tar.patch
blob: 3c3c23a54a6f2a1140eb2942f75dda65a99834a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

This patch allows tar to continue correctly when it does not detect
a compressed format. This allows tar to then untar a non-compressed 
tar file.

See this thread for details: http://lists.busybox.net/pipermail/busybox/2014-January/080389.html

Upstream-Status: Inappropriate [Upstream has different fix with additional functionality]
Signed-off-by: Saul Wold <sgw@linux.intel.com>

Index: busybox-1.22.1/archival/libarchive/open_transformer.c
===================================================================
--- busybox-1.22.1.orig/archival/libarchive/open_transformer.c
+++ busybox-1.22.1/archival/libarchive/open_transformer.c
@@ -200,7 +200,7 @@ int FAST_FUNC open_zipped(const char *fn
 	 || (ENABLE_FEATURE_SEAMLESS_BZ2)
 	 || (ENABLE_FEATURE_SEAMLESS_XZ)
 	) {
-		setup_unzip_on_fd(fd, /*fail_if_not_detected:*/ 1);
+		setup_unzip_on_fd(fd, /*fail_if_not_detected:*/ 0);
 	}
 
 	return fd;