From 7dfacc0f8c6116b2823d7d6f954e67578fef2cc8 Mon Sep 17 00:00:00 2001 From: fbuescher Date: Wed, 11 Jun 2025 09:27:59 +0200 Subject: [PATCH] fixed remove multiple leading slashes --- support/rrsync | 1 + 1 file changed, 1 insertion(+) diff --git a/support/rrsync b/support/rrsync index e8b0cc0d2..2ff6f9a48 100755 --- a/support/rrsync +++ b/support/rrsync @@ -300,6 +300,7 @@ def validated_arg(opt, arg, typ=3, wild=False): if arg.startswith('./'): arg = arg[1:] arg = arg.replace('//', '/') + arg = arg.lstrip('/') if args.dir != '/': if HAS_DOT_DOT_RE.search(arg): die("do not use .. in", opt, "(anchor the path at the root of your restricted dir)")