From: fbuescher Date: Wed, 11 Jun 2025 07:27:59 +0000 (+0200) Subject: fixed remove multiple leading slashes X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d4c4f6754eff0d8ea6fdb327abf5c874bfccb8dd;p=thirdparty%2Frsync.git fixed remove multiple leading slashes --- 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)")