Make sure that the $chkdir has the same mtime/etc. as the
authorWayne Davison <wayned@samba.org>
Fri, 15 Apr 2005 17:26:27 +0000 (17:26 +0000)
committerWayne Davison <wayned@samba.org>
Fri, 15 Apr 2005 17:26:27 +0000 (17:26 +0000)
$fromdir.

testsuite/hardlinks.test

index f4db3a0..39e0a17 100644 (file)
@@ -38,6 +38,7 @@ rm -rf "$todir"
 # enabled (this has had a problem twice now, so we need this).
 mkdir "$chkdir"
 cp -p "$name1" "$chkdir"
 # enabled (this has had a problem twice now, so we need this).
 mkdir "$chkdir"
 cp -p "$name1" "$chkdir"
+rsync -avvi -f '-! */' "$fromdir/" "$chkdir/"
 checkit "$RSYNC -aHivv \"$name1\" \"$todir/\"" "$chkdir" "$todir"
 
 # The script would have aborted on error, so getting here means we've won.
 checkit "$RSYNC -aHivv \"$name1\" \"$todir/\"" "$chkdir" "$todir"
 
 # The script would have aborted on error, so getting here means we've won.