#328465 rsync warns about unwritable local destination file but downloads anyway

Package:
rsync
Source:
rsync
Description:
fast, versatile, remote (and local) file-copying tool
Submitter:
Felix Kuehling
Date:
2010-03-17 08:18:06 UTC
Severity:
wishlist
#328465#5
Date:
2005-09-15 13:14:43 UTC
From:
To:
I was downloading a large file that I had already partially downloaded
with this command line:

  rsync --inplace -P 'user@host:"file name with spaces"' .

The remote host doesn't have an rsync server running, it used the ssh
transport automatically. The local destination file had permissions 400
(which I was not aware off at that time). Rsync warned me about this
with:

rsync: open "/local/dir/file name with spaces" failed: Permission denied (13)

However, the download continued, so I thought rsync would handle the
permission problem. It was only a warning after all. But when I returned
in the morning, the download had finished without adding any new data to
the destination file. All it had done was waste bandwidth.

IMO this is a bug, which should be fixed in one of two ways:

a) change permissions of the destination file to make it writable.
b) give up on the unwritable file instead of downloading into nirvana.

(b) is probably a good idea either way, in case permissions can't be
changed or the destination file system runs out of space.

Related bug: #232914. The same situation but with a remote destination
file.

Best regards,
  Felix

#328465#10
Date:
2010-03-17 03:16:10 UTC
From:
To:
severity 328465 wishlist
merge 328465 232914
thanks

Indeed, this is the same issue.  I'll merge them.