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 `/`
This commit is contained in:
Marco Nenciarini authored and GitHub committed 2021-12-30 08:59:17 -08:00
1 parent e07f8fb863
commit ffec7fe109
1 file changed
+1 -1
+1 -1
View File
@@ -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: