added "created dir" message
[rsync/rsync.git] / match.c
diff --git a/match.c b/match.c
index 1591fdc..3b205bf 100644 (file)
--- a/match.c
+++ b/match.c
@@ -38,6 +38,9 @@ static int total_matches=0;
 static int total_data_transfer=0;
 
 
+static int check_f_in;
+
+
 struct target {
   tag t;
   int i;
@@ -97,6 +100,7 @@ static void matched(int f,struct sum_struct *s,char *buf,off_t len,int offset,in
              (int)offset,(int)last_match,i,(int)s->sums[i].len,n);
 
   if (n > 0) {
+    read_check(check_f_in);
     write_int(f,n);
     write_buf(f,buf+last_match,n);
     data_transfer += n;
@@ -197,7 +201,7 @@ static void hash_search(int f,struct sum_struct *s,char *buf,off_t len)
 }
 
 
-void match_sums(int f,struct sum_struct *s,char *buf,off_t len)
+void match_sums(int f,struct sum_struct *s,char *buf,off_t len,int f_in)
 {
   last_match = 0;
   false_alarms = 0;
@@ -205,6 +209,8 @@ void match_sums(int f,struct sum_struct *s,char *buf,off_t len)
   matches=0;
   data_transfer=0;
 
+  check_f_in = f_in;
+
   if (len > 0 && s->count>0) {
     build_hash_table(s);