@@ -10,6 +10,13 @@ lnkdir="$tmpdir/lnk"
1010
1111$RSYNC -VV | grep ' "xattrs": true' > /dev/null || test_skipped " Rsync is configured without xattr support"
1212
13+ CYGWIN=0
14+
15+ case " $HOST_OS " in
16+ cygwin* )
17+ CYGWIN=1
18+ esac
19+
1320case " $HOST_OS " in
1421darwin* )
1522 xset () {
@@ -80,14 +87,20 @@ echo else >"$fromdir/file2"
8087echo deep > " $fromdir /foo/file3"
8188echo normal > " $fromdir /file4"
8289echo deeper > " $fromdir /foo/bar/file5"
83- echo longxattrname > " $fromdir /file7"
90+ if [ $CYGWIN -eq 0 ]; then
91+ echo longxattrname > " $fromdir /file7"
92+ fi
8493
8594makepath " $chkdir /foo"
8695echo wow > " $chkdir /file1"
8796cp_touch " $fromdir /foo/file3" " $chkdir /foo"
8897
8998dirs=' foo foo/bar'
90- files=' file0 file1 file2 foo/file3 file4 foo/bar/file5 file7'
99+ files=' file0 file1 file2 foo/file3 file4 foo/bar/file5'
100+ if [ $CYGWIN -eq 0 ]
101+ then
102+ files=" $files file7"
103+ fi
91104
92105uid_gid=` " $TOOLDIR /tls" " $fromdir /foo" | sed ' s/^.* \([0-9][0-9]*\)\.\([0-9][0-9]*\) .*/\1:\2/' `
93106
@@ -126,14 +139,15 @@ xset user.extra 'remove me' "$chkdir/file1"
126139xset user.foo ' old foo' " $chkdir /foo/file3"
127140xset $RUSR .equal ' this long attribute should remain the same and not need to be transferred' " $chkdir /foo/file3"
128141
142+ if [ $CYGWIN -eq 0 ] ; then
129143# Generate xattr names
130144SEQ=` seq 1 200`
131145xset user." ` printf -- ' A%0.s' $SEQ ` " ' first xattr' file7
132146xset user." ` printf -- ' B%0.s' $SEQ ` " ' second xattr' file7
133147xset user." ` printf -- ' C%0.s' $SEQ ` " ' third xattr' file7
134148xset user." ` printf -- ' D%0.s' $SEQ ` " ' another xattr' file7
135149xset user." ` printf -- ' E%0.s' $SEQ ` " ' final xattr' file7
136-
150+ fi
137151
138152case $0 in
139153* hlink* )
0 commit comments