[SCM] The rsync repository. - branch master updated

Rsync CVS commit messages rsync-cvs at lists.samba.org
Thu Dec 30 17:08:50 UTC 2021


The branch, master has been updated
       via  ffec7fe1 Fix rrsync directory normalization (#268)
      from  e07f8fb8 Add a default single-access lock.

https://git.samba.org/?p=rsync.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit ffec7fe109efda650988ff993c989c2bc9f24dff
Author: Marco Nenciarini <mnencia at kcore.it>
Date:   Thu Dec 30 17:59:17 2021 +0100

    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 `/`

-----------------------------------------------------------------------

Summary of changes:
 support/rrsync | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


Changeset truncated at 500 lines:

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:


-- 
The rsync repository.



More information about the rsync-cvs mailing list