You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.1 KiB

  1. commit 3e06d40029cfdce9d0f73d87cfd4edaf54be9c51
  2. Author: Jeriko One <jeriko.one@gmx.us>
  3. Date: Thu Nov 2 23:44:19 2017 -0700
  4. Check fname in recv_files sooner.
  5. diff --git a/receiver.c b/receiver.c
  6. index baae3a9..9fdafa1 100644
  7. --- a/receiver.c
  8. +++ b/receiver.c
  9. @@ -574,6 +574,12 @@ int recv_files(int f_in, int f_out, char *local_name)
  10. file = dir_flist->files[cur_flist->parent_ndx];
  11. fname = local_name ? local_name : f_name(file, fbuf);
  12. + if (daemon_filter_list.head
  13. + && check_filter(&daemon_filter_list, FLOG, fname, 0) < 0) {
  14. + rprintf(FERROR, "attempt to hack rsync failed.\n");
  15. + exit_cleanup(RERR_PROTOCOL);
  16. + }
  17. +
  18. if (DEBUG_GTE(RECV, 1))
  19. rprintf(FINFO, "recv_files(%s)\n", fname);
  20. @@ -645,12 +651,6 @@ int recv_files(int f_in, int f_out, char *local_name)
  21. cleanup_got_literal = 0;
  22. - if (daemon_filter_list.head
  23. - && check_filter(&daemon_filter_list, FLOG, fname, 0) < 0) {
  24. - rprintf(FERROR, "attempt to hack rsync failed.\n");
  25. - exit_cleanup(RERR_PROTOCOL);
  26. - }
  27. -
  28. if (read_batch) {
  29. int wanted = redoing
  30. ? we_want_redo(ndx)