Bug 7783 - add no-executability option
Summary: add no-executability option
Status: RESOLVED WORKSFORME
Alias: None
Product: rsync
Classification: Unclassified
Component: core (show other bugs)
Version: 3.0.7
Hardware: Other Linux
: P3 normal (vote)
Target Milestone: ---
Assignee: Wayne Davison
QA Contact: Rsync QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-08 07:27 UTC by Matus UHLAR - fantomas
Modified: 2010-11-09 01:53 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matus UHLAR - fantomas 2010-11-08 07:27:03 UTC
Please add option for rsync that will skip all executability checks and will not set files executable, no matter whether existing or newly created. 

There are cases where source files are executable, but the destination files don't need/have to be and using the umask is just enough.
Comment 1 Wayne Davison 2010-11-08 21:50:09 UTC
See --chmod=a-x.
Comment 2 Matus UHLAR - fantomas 2010-11-09 01:53:34 UTC
The point was to avoid calling chmod() at all, and add no--executability as there is executability without its opposite.

But I see strace showing that chmod() is always called so we won't spare system calls here