[SCM] The rsync repository. - branch master updated

Rsync CVS commit messages rsync-cvs at lists.samba.org
Tue Jul 7 20:14:41 UTC 2020


The branch, master has been updated
       via  c3269275 Don't use UNUSED() when an arg is used sometimes.
       via  7e47855d Update the NEWS.
      from  d2d6ad48 Allow --max-alloc=0 for unlimited.

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


- Log -----------------------------------------------------------------
commit c3269275a88380b616ed647abbd775bd43fe5c95
Author: Wayne Davison <wayne at opencoder.net>
Date:   Tue Jul 7 13:12:51 2020 -0700

    Don't use UNUSED() when an arg is used sometimes.

commit 7e47855d47151777ae03b6671a4c8ec23e336e06
Author: Wayne Davison <wayne at opencoder.net>
Date:   Tue Jul 7 12:38:20 2020 -0700

    Update the NEWS.

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

Summary of changes:
 NEWS.md   | 16 ++++++++++++++--
 syscall.c |  4 +++-
 2 files changed, 17 insertions(+), 3 deletions(-)


Changeset truncated at 500 lines:

diff --git a/NEWS.md b/NEWS.md
index faa454cc..440b8bdc 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -6,11 +6,23 @@
 
 ### BUG FIXES:
 
- - None
+ - Fixed the specifying of --bwlimit=0 for the default (unlimited).
 
 ### ENHANCEMENTS:
 
- - None
+ - Allow `--max-alloc=0` to specify no limit.
+
+ - The user/group name of id 0 is now shared along with the other user/group
+   names in a transfer instead of assuming that both sides have the same name
+   for id 0.
+
+ - Added some portability support for HPE NonStop platforms.
+
+### INTERNAL:
+
+ - Use a C99 Flexible Array for a variable-size filename in a struct when
+   possible (with a fallback to the old 1-char string kluge for older
+   compilers).
 
 ------------------------------------------------------------------------------
 <a name="3.2.2"></a>
diff --git a/syscall.c b/syscall.c
index b7c8f14e..e98bc98e 100644
--- a/syscall.c
+++ b/syscall.c
@@ -523,7 +523,7 @@ OFF_T do_fallocate(int fd, OFF_T offset, OFF_T length)
 
 /* Punch a hole at pos for len bytes. The current file position must be at pos and will be
  * changed to be at pos + len. */
-int do_punch_hole(int fd, UNUSED(OFF_T pos), OFF_T len)
+int do_punch_hole(int fd, OFF_T pos, OFF_T len)
 {
 #ifdef HAVE_FALLOCATE
 # ifdef HAVE_FALLOC_FL_PUNCH_HOLE
@@ -540,6 +540,8 @@ int do_punch_hole(int fd, UNUSED(OFF_T pos), OFF_T len)
 		return 0;
 	}
 # endif
+#else
+	(void)pos;
 #endif
 	{
 		char zeros[4096];


-- 
The rsync repository.



More information about the rsync-cvs mailing list