Bug 7111 - --fake-super should set real file u+x if source is executable
--fake-super should set real file u+x if source is executable
Product: rsync
Classification: Unclassified
Component: core
All All
: P3 minor
: ---
Assigned To: Wayne Davison
Rsync QA Contact
Depends on:
  Show dependency treegraph
Reported: 2010-02-07 19:48 UTC by Matt McCutchen
Modified: 2011-01-01 20:08 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Matt McCutchen 2010-02-07 19:48:21 UTC
The --fake-super mode should set u+x on the real file if the source file is executable.  This would be consistent with Linux permission checking for the real superuser:


Test case (run as non-root):
touch file
chmod 401 file
rsync-dev -a -M--fake-super file file2
if [ -x file2 ]; then echo "PASS"; else echo "FAIL"; fi