summaryrefslogtreecommitdiff
path: root/pkg/openbsd/patch/0036-rsync-Pass-long-long-to-scan_scaled.patch
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/openbsd/patch/0036-rsync-Pass-long-long-to-scan_scaled.patch')
-rw-r--r--pkg/openbsd/patch/0036-rsync-Pass-long-long-to-scan_scaled.patch42
1 files changed, 42 insertions, 0 deletions
diff --git a/pkg/openbsd/patch/0036-rsync-Pass-long-long-to-scan_scaled.patch b/pkg/openbsd/patch/0036-rsync-Pass-long-long-to-scan_scaled.patch
new file mode 100644
index 00000000..7e359c6a
--- /dev/null
+++ b/pkg/openbsd/patch/0036-rsync-Pass-long-long-to-scan_scaled.patch
@@ -0,0 +1,42 @@
+From 0b46c097e66f06fc7e5b4817e6cfdbb145bf4825 Mon Sep 17 00:00:00 2001
+From: Michael Forney <mforney@mforney.org>
+Date: Wed, 27 Apr 2022 20:03:45 -0700
+Subject: [PATCH] rsync: Pass long long * to scan_scaled
+
+off_t might not be long long.
+---
+ usr.bin/rsync/main.c | 7 +++++--
+ 1 file changed, 5 insertions(+), 2 deletions(-)
+
+diff --git a/usr.bin/rsync/main.c b/usr.bin/rsync/main.c
+index d59848f0214..477adbbba50 100644
+--- a/usr.bin/rsync/main.c
++++ b/usr.bin/rsync/main.c
+@@ -361,6 +361,7 @@ main(int argc, char *argv[])
+ struct fargs *fargs;
+ char **args;
+ const char *errstr;
++ long long size;
+
+ /* Global pledge. */
+
+@@ -509,12 +510,14 @@ basedir:
+ opts.basedir[basedir_cnt++] = optarg;
+ break;
+ case OP_MAX_SIZE:
+- if (scan_scaled(optarg, &opts.max_size) == -1)
++ if (scan_scaled(optarg, &size) == -1)
+ err(1, "bad max-size");
++ opts.max_size = size;
+ break;
+ case OP_MIN_SIZE:
+- if (scan_scaled(optarg, &opts.min_size) == -1)
++ if (scan_scaled(optarg, &size) == -1)
+ err(1, "bad min-size");
++ opts.max_size = size;
+ break;
+ case 'h':
+ default:
+--
+2.49.0
+