From b6c05667331ff0ba7db8420a42a724eb7073d26e Mon Sep 17 00:00:00 2001 From: Rodrigo OSORIO Date: Wed, 15 Jan 2025 10:32:48 +0100 Subject: [PATCH] Test send a single directory with -H enabled Ensure this still working after 3.4.0 breakage https://github.com/RsyncProject/rsync/issues/702 --- testsuite/hardlinks.test | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/testsuite/hardlinks.test b/testsuite/hardlinks.test index af2ea4088..7e5219d3e 100644 --- a/testsuite/hardlinks.test +++ b/testsuite/hardlinks.test @@ -77,5 +77,10 @@ rm -rf "$todir" $RSYNC -aHivv --debug=HLINK5 "$name1" "$todir/" diff $diffopt "$name1" "$todir" || test_fail "solo copy of name1 failed" +# Make sure there's nothing wrong with sending a single directory with -H +# enabled (this has broken in 3.4.0 so far, so we need this test). +makepath "$fromdir/sym" "$todir" "$fromdir" "$todir" +checkit "$RSYNC -aH '$fromdir/sym' '$todir'" + # The script would have aborted on error, so getting here means we've won. exit 0