Check daemon filter against fnamecmp in recv_files().
[rsync.git] / receiver.c
index 9fdafa152cb38d0fa8191b14af5cfc49a06a185c..9c46242e013c4d447b17b00bbb705a96a5c92ed1 100644 (file)
@@ -722,7 +722,7 @@ int recv_files(int f_in, int f_out, char *local_name)
                                break;
                        }
                        if (!fnamecmp || (daemon_filter_list.head
-                         && check_filter(&daemon_filter_list, FLOG, fname, 0) < 0)) {
+                         && check_filter(&daemon_filter_list, FLOG, fnamecmp, 0) < 0)) {
                                fnamecmp = fname;
                                fnamecmp_type = FNAMECMP_FNAME;
                        }