linux-qubasis
linux oasis port as a qubes template
git clone https://9o.is/git/linux-qubasis.git
0036-rsync-Pass-long-long-to-scan_scaled.patch
(1113B)
1 From 0b46c097e66f06fc7e5b4817e6cfdbb145bf4825 Mon Sep 17 00:00:00 2001
2 From: Michael Forney <mforney@mforney.org>
3 Date: Wed, 27 Apr 2022 20:03:45 -0700
4 Subject: [PATCH] rsync: Pass long long * to scan_scaled
5
6 off_t might not be long long.
7 ---
8 usr.bin/rsync/main.c | 7 +++++--
9 1 file changed, 5 insertions(+), 2 deletions(-)
10
11 diff --git a/usr.bin/rsync/main.c b/usr.bin/rsync/main.c
12 index d59848f0214..477adbbba50 100644
13 --- a/usr.bin/rsync/main.c
14 +++ b/usr.bin/rsync/main.c
15 @@ -361,6 +361,7 @@ main(int argc, char *argv[])
16 struct fargs *fargs;
17 char **args;
18 const char *errstr;
19 + long long size;
20
21 /* Global pledge. */
22
23 @@ -509,12 +510,14 @@ basedir:
24 opts.basedir[basedir_cnt++] = optarg;
25 break;
26 case OP_MAX_SIZE:
27 - if (scan_scaled(optarg, &opts.max_size) == -1)
28 + if (scan_scaled(optarg, &size) == -1)
29 err(1, "bad max-size");
30 + opts.max_size = size;
31 break;
32 case OP_MIN_SIZE:
33 - if (scan_scaled(optarg, &opts.min_size) == -1)
34 + if (scan_scaled(optarg, &size) == -1)
35 err(1, "bad min-size");
36 + opts.max_size = size;
37 break;
38 case 'h':
39 default:
40 --
41 2.49.0
42