summaryrefslogtreecommitdiffstats
path: root/source/xap/pan/patches/0000-b9a4154942c932a493736d2292bbae16384e35df.patch
diff options
context:
space:
mode:
Diffstat (limited to 'source/xap/pan/patches/0000-b9a4154942c932a493736d2292bbae16384e35df.patch')
-rw-r--r--source/xap/pan/patches/0000-b9a4154942c932a493736d2292bbae16384e35df.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/source/xap/pan/patches/0000-b9a4154942c932a493736d2292bbae16384e35df.patch b/source/xap/pan/patches/0000-b9a4154942c932a493736d2292bbae16384e35df.patch
new file mode 100644
index 000000000..1732e91f5
--- /dev/null
+++ b/source/xap/pan/patches/0000-b9a4154942c932a493736d2292bbae16384e35df.patch
@@ -0,0 +1,25 @@
+From b9a4154942c932a493736d2292bbae16384e35df Mon Sep 17 00:00:00 2001
+From: Federico Cuello <fedux@fedux.com.ar>
+Date: Sat, 17 Nov 2018 17:44:49 +0100
+Subject: [PATCH] Fix ypart begin for bpf ranges
+
+It was creating yparts with begin=0 and end==previous_part_begin with
+multipart files. It should start from 1 and next part from previous end
++ 1.
+---
+ uulib/uuencode.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/uulib/uuencode.c b/uulib/uuencode.c
+index b9a390e..2768771 100644
+--- a/uulib/uuencode.c
++++ b/uulib/uuencode.c
+@@ -1740,7 +1740,7 @@ UUEncodePartial_byFSize (FILE *outfile, FILE *infile,
+ }
+
+ fprintf (outfile, "=ypart begin=%ld end=%ld%s",
+- (partno-1)*bpf,
++ (partno-1)*bpf+1,
+ (partno*bpf) < progress.totsize ?
+ (partno*bpf) : progress.totsize,
+ eolstring);