From d58e4c273c6a8d770c4e0cd80d5f1b70270eb229 Mon Sep 17 00:00:00 2001 From: Martin Pool Date: Fri, 25 Jan 2002 10:55:59 +0000 Subject: [PATCH] When comparing directories, use `find .` to call diff, rather than diff -r. Two reasons: diff -r might not work everywhere, and it also might complain about nonregular files. --- testsuite/rsync.fns | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/testsuite/rsync.fns b/testsuite/rsync.fns index 5525062a..1e9e8193 100644 --- a/testsuite/rsync.fns +++ b/testsuite/rsync.fns @@ -150,7 +150,11 @@ checkit() { echo "-------------" echo "check how the files compare with diff:" echo "" - diff -cr $2 $3 || failed=YES + for f in `cd "$2"; find . -type f -print ` + do + diff -u "$2"/"$f" "$3"/"$f" || failed=YES + done + echo "-------------" echo "check how the directory listings compare with diff:" echo "" -- 2.34.1