Bug 11893 - rsync should check local file access permission before connecting to remote end
rsync should check local file access permission before connecting to remote end
Status: NEW
Product: rsync
Classification: Unclassified
Component: core
3.1.2
All All
: P5 minor
: ---
Assigned To: Wayne Davison
Rsync QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2016-05-04 09:04 UTC by Rami Lehti
Modified: 2016-05-04 09:07 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rami Lehti 2016-05-04 09:04:05 UTC
I'm using rsync to transfer large OS image files around and sometimes the local permissions change so that the sender does not have access to the source file any more.

Having previously transferred the file there is already a file of matching size on the target host. Now attempting the transfer again rsync connects to the remote end and the remote end begins to do its checks before the transfer proper. Because the image file is large this will take a long time (10 minutes). 

After this rsync will report the "Permission denied" error for the local file. 

It would be more user-friendly to check the local file access permissions before doing anything time consuming and exit with an error as soon as possible.

Please consider changing this behaviour.