]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
Avoid a failed test if dirs report 1 hlink (e.g. WSL weirdness).
authorWayne Davison <wayned@samba.org>
Sat, 5 Jan 2019 05:43:50 +0000 (21:43 -0800)
committerWayne Davison <wayned@samba.org>
Sat, 5 Jan 2019 05:43:50 +0000 (21:43 -0800)
testsuite/xattrs.test

index f7d9a6dfea2e0f650664c9a9dea490f449ae0b1d..86165e0c238ba073380c4a5438cd09c406f889e1 100644 (file)
@@ -163,7 +163,7 @@ checkit "$RSYNC -aiX $XFILT $dashH --fake-super --link-dest=../chk . ../to" "$ch
 cd "$todir"
 xls $dirs $files | diff $diffopt "$scratchdir/xattrs.txt" -
 
-sed -n -e '/^[^ ][^ ]*  *[^ ][^ ]*  *[^ ][^ ]*  *1 /p' "$scratchdir/ls-to" >"$scratchdir/ls-diff-all"
+sed -n -e '/^[^d ][^ ]*  *[^ ][^ ]*  *[^ ][^ ]*  *1 /p' "$scratchdir/ls-to" >"$scratchdir/ls-diff-all"
 fgrep -v './file1' "$scratchdir/ls-diff-all" >"$scratchdir/ls-diff" || :
 if [ -s "$scratchdir/ls-diff" ]; then
     echo "Missing hard links on:"