summaryrefslogtreecommitdiff
path: root/data/_dpkg
diff options
context:
space:
mode:
authorSam Bingner <sam@bingner.com>2018-11-14 21:44:19 -1000
committerSam Bingner <sam@bingner.com>2018-11-14 21:44:19 -1000
commiteb85ac968649dbfa528424fcbbb73ea8258bed67 (patch)
tree8034899c9a508629314d1a31b9bbdf3185124678 /data/_dpkg
parent1c4910de8117eb56ff68d6faffef673d6b0b7f06 (diff)
Update ruby to 2.5.3 and fix dpkg to be able to install it
Diffstat (limited to 'data/_dpkg')
-rw-r--r--data/_dpkg/long_file.diff13
1 files changed, 13 insertions, 0 deletions
diff --git a/data/_dpkg/long_file.diff b/data/_dpkg/long_file.diff
new file mode 100644
index 000000000..8ed7b16fe
--- /dev/null
+++ b/data/_dpkg/long_file.diff
@@ -0,0 +1,13 @@
+diff -ur dpkg-1.18.25/lib/dpkg/tarfn.c dpkg-1.18.25+iPhone/lib/dpkg/tarfn.c
+--- dpkg-1.18.25/lib/dpkg/tarfn.c 2018-06-25 16:48:17.000000000 -1000
++++ dpkg-1.18.25+iPhone/lib/dpkg/tarfn.c 2018-11-14 21:23:25.000000000 -1000
+@@ -345,7 +345,8 @@
+ int long_read;
+
+ free(*longp);
+- *longp = bp = m_malloc(te->size);
++ *longp = bp = m_malloc(te->size+1);
++ bzero(bp, te->size+1);
+
+ for (long_read = te->size; long_read > 0; long_read -= TARBLKSZ) {
+ int copysize;