Skip to content

Update rsync #2696

Merged
merged 3 commits into from
Jun 22, 2022
Merged

Update rsync #2696

merged 3 commits into from
Jun 22, 2022

Commits on Jun 21, 2022

  1. rsync: Increment build number

    donald committed Jun 21, 2022
    Configuration menu
    Copy the full SHA
    5858d57 View commit details
    Browse the repository at this point in the history
  2. rsync: Remove stray variable reference

    This works by accident if $p evaluates to an empty string which is no
    longer the case when we add a PATCHURL.
    donald committed Jun 21, 2022
    Configuration menu
    Copy the full SHA
    2bd9bec View commit details
    Browse the repository at this point in the history
  3. rsync: Add patch to exit on hard link failure

    Rsync might crash if we continue after a hard link failure. There is no
    reasonable way anyway, so just abort with recognizable error code.
    
    https://github.com/WayneD/rsync/issues/329
    ---
     hlink.c | 5 ++++-
     1 file changed, 4 insertions(+), 1 deletion(-)
    
    diff --git a/hlink.c b/hlink.c
    index 66810a3e..23869872 100644
    --- a/hlink.c
    +++ b/hlink.c
    @@ -464,7 +464,10 @@ int hard_link_one(struct file_struct *file, const char *fname,
     			code = FERROR_XFER;
     		rsyserr(code, errno, "link %s => %s failed",
     			full_fname(fname), oldname);
    -		return 0;
    +
    +		/* This is broken beyond repair for --link-dest. No good way to continue here. */
    +		fprintf(stderr, "Aborting due to hard link failure\n");
    +		_exit(33);
     	}
    
     	file->flags |= FLAG_HLINK_DONE;
    --
    2.36.0
    donald committed Jun 21, 2022
    Configuration menu
    Copy the full SHA
    969d73e View commit details
    Browse the repository at this point in the history