Bug 11979 - rsync -X fails without need
Summary: rsync -X fails without need
Status: RESOLVED WONTFIX
Alias: None
Product: rsync
Classification: Unclassified
Component: core (show other bugs)
Version: 3.1.1
Hardware: All Linux
: P5 normal (vote)
Target Milestone: ---
Assignee: Wayne Davison
QA Contact: Rsync QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-16 06:29 UTC by Harri
Modified: 2020-07-28 00:29 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 Harri 2016-06-16 06:29:56 UTC
Problem: "rsync -aX remote:/somepath ." fails, if the remote site doesn't support extended attributes. Sample session:

# rsync -aX aix1:/usr/man .
rsync: extended attributes are not supported on this server
rsync error: syntax or usage error (code 1) at main.c(1554) [server=3.1.1]
rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(226) [Receiver=3.1.1]

Since this is a read-only access on the remote side a warning should be sufficient.
Comment 1 Wayne Davison 2020-07-26 09:11:40 UTC
The rsync can't speak the xattr protocol needed to make the transfer work and the client has no way to know that in advance. Thus, it dies and lets you remove the option.
Comment 2 Harri 2020-07-27 06:13:36 UTC
Would it be possible to ignore the -X in this case?
Comment 3 Wayne Davison 2020-07-28 00:29:30 UTC
Nope, that's the whole point.