diff options
author | Marco Nenciarini <mnencia@kcore.it> | 2021-12-30 17:59:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-30 08:59:17 -0800 |
commit | ffec7fe109efda650988ff993c989c2bc9f24dff (patch) | |
tree | 5960e1d48dbc0ee9c8e4aa6c14913edc5d4fc161 /support | |
parent | e07f8fb86329d9370edb47d5c057def16108892e (diff) | |
download | rsync-ffec7fe109efda650988ff993c989c2bc9f24dff.tar.gz |
Fix rrsync directory normalization (#268)
Fix an off-by-one in the `args.dir_slash_len` variable that leads to base every absolute path on `/`
Diffstat (limited to 'support')
-rwxr-xr-x | support/rrsync | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/support/rrsync b/support/rrsync index 469288b9..fe1bc250 100755 --- a/support/rrsync +++ b/support/rrsync @@ -368,7 +368,7 @@ if __name__ == '__main__': args = arg_parser.parse_args() args.dir = os.path.realpath(args.dir) args.dir_slash = args.dir + '/' - args.dir_slash_len = len(args.dir) + args.dir_slash_len = len(args.dir_slash) if args.ro: args.no_del = True elif not args.no_lock: |