Skip to content

Commit

Permalink
Allow a local-server copy to use -X and -A even if a --protocol-version
Browse files Browse the repository at this point in the history
is forced, which makes some testing idioms easier.
  • Loading branch information
Wayne Davison committed Apr 7, 2007
1 parent 16edf86 commit 01894cf
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
4 changes: 2 additions & 2 deletions compat.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,14 @@ void setup_protocol(int f_out,int f_in)
protocol_version);
exit_cleanup(RERR_PROTOCOL);
}
if (preserve_acls) {
if (preserve_acls && !local_server) {
rprintf(FERROR,
"--acls requires protocol 30 or higher"
" (negotiated %d).\n",
protocol_version);
exit_cleanup(RERR_PROTOCOL);
}
if (preserve_xattrs) {
if (preserve_xattrs && !local_server) {
rprintf(FERROR,
"--xattrs requires protocol 30 or higher"
" (negotiated %d).\n",
Expand Down
4 changes: 0 additions & 4 deletions testsuite/acls.test
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@

$RSYNC --version | grep ", ACLs" >/dev/null || test_skipped "Rsync is configured without ACL support"

case "$RSYNC" in
*protocol=29*) test_skipped "ACL support requires protocol 30" ;;
esac

case "$setfacl_nodef" in
true) test_skipped "I don't know how to use your setfacl command" ;;
esac
Expand Down
4 changes: 0 additions & 4 deletions testsuite/xattrs.test
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@

$RSYNC --version | grep ", xattrs" >/dev/null || test_skipped "Rsync is configured without xattr support"

case "$RSYNC" in
*protocol=29*) test_skipped "xattr support requires protocol 30" ;;
esac

case "`xattr 2>&1`" in
*--list:*)
xset() {
Expand Down

0 comments on commit 01894cf

Please sign in to comment.