summaryrefslogtreecommitdiff
path: root/core/libarchive/sparse-file.patch
diff options
context:
space:
mode:
Diffstat (limited to 'core/libarchive/sparse-file.patch')
-rw-r--r--core/libarchive/sparse-file.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/core/libarchive/sparse-file.patch b/core/libarchive/sparse-file.patch
new file mode 100644
index 000000000..e7d3e473b
--- /dev/null
+++ b/core/libarchive/sparse-file.patch
@@ -0,0 +1,13 @@
+Index: libarchive/archive_write_set_format_pax.c
+===================================================================
+--- libarchive/archive_write_set_format_pax.c (revision 4094)
++++ libarchive/archive_write_set_format_pax.c (working copy)
+@@ -1647,7 +1647,7 @@
+ return (total);
+
+ p = ((const unsigned char *)buff) + total;
+- ws = s;
++ ws = s - total;
+ if (ws > pax->sparse_list->remaining)
+ ws = pax->sparse_list->remaining;
+