From d4c4f6754eff0d8ea6fdb327abf5c874bfccb8dd 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 61f1d888..68e6fd8b 100755 --- a/support/rrsync +++ b/support/rrsync @@ -301,6 +301,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)") -- 2.47.3