The branch, master has been updated
       via  299430a6 Lack of "saw" values now reported as "INVALID"; tweak a 
comment.
      from  dcbe005a Preparing for release of 3.2.2pre1

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


- Log -----------------------------------------------------------------
commit 299430a6c11fadcdfffa1f41f1d3344e01efe596
Author: Wayne Davison <wa...@opencoder.net>
Date:   Sat Jun 27 23:13:25 2020 -0700

    Lack of "saw" values now reported as "INVALID"; tweak a comment.

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

Summary of changes:
 cleanup.c | 2 +-
 compat.c  | 4 +++-
 2 files changed, 4 insertions(+), 2 deletions(-)


Changeset truncated at 500 lines:

diff --git a/cleanup.c b/cleanup.c
index ab981ec7..a2d6b384 100644
--- a/cleanup.c
+++ b/cleanup.c
@@ -222,7 +222,7 @@ NORETURN void _exit_cleanup(int code, const char *file, int 
line)
                 * we don't want to output a duplicate error. */
                if ((exit_code && line > 0)
                 || am_daemon || (logfile_name && (am_server || 
!INFO_GTE(STATS, 1)))) {
-#ifdef HAVE_USLEEP /* Try for a teeny delay if both sender & receiver are 
sending a msg at the same time. */
+#ifdef HAVE_USLEEP /* A tiny delay just in case both sender & receiver are 
sending a msg at the same time. */
                        if (am_server && exit_code)
                                usleep(50);
 #endif
diff --git a/compat.c b/compat.c
index 00b13c87..527201ac 100644
--- a/compat.c
+++ b/compat.c
@@ -366,7 +366,7 @@ static void recv_negotiate_str(int f_in, struct 
name_num_obj *nno, char *tmpbuf,
                rprintf(FERROR, "%s list: %s\n", am_server ? "Client" : 
"Server", tmpbuf);
                /* Recreate our original list from the saw values. This can't 
overflow our huge
                 * buffer because we don't have enough valid entries to get 
anywhere close. */
-               for (j = 1; j <= nno->saw_len; j++) {
+               for (j = 1, *cp = '\0'; j <= nno->saw_len; j++) {
                        struct name_num_item *nni;
                        for (nni = nno->list; nni->name; nni++) {
                                if (nno->saw[nni->num] == j) {
@@ -376,6 +376,8 @@ static void recv_negotiate_str(int f_in, struct 
name_num_obj *nno, char *tmpbuf,
                                }
                        }
                }
+               if (!*tmpbuf)
+                       strlcpy(cp, " INVALID", MAX_NSTR_STRLEN);
                rprintf(FERROR, "%s list:%s\n", am_server ? "Server" : 
"Client", tmpbuf);
        }
 


-- 
The rsync repository.

_______________________________________________
rsync-cvs mailing list
rsync-cvs@lists.samba.org
https://lists.samba.org/mailman/listinfo/rsync-cvs

Reply via email to