diff options
author | Jeriko One <jeriko.one@gmx.us> | 2017-11-02 23:44:19 -0700 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2017-12-03 16:12:28 -0800 |
commit | 3e06d40029cfdce9d0f73d87cfd4edaf54be9c51 (patch) | |
tree | bbfd52e7fef51c225d0c9c14857739620509854b /receiver.c | |
parent | 416e719bea4f5466c8dd2b34cac0059b6ff84ff3 (diff) | |
download | rsync-3e06d40029cfdce9d0f73d87cfd4edaf54be9c51.tar.gz |
Check fname in recv_files sooner.
Diffstat (limited to 'receiver.c')
-rw-r--r-- | receiver.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -574,6 +574,12 @@ int recv_files(int f_in, int f_out, char *local_name) file = dir_flist->files[cur_flist->parent_ndx]; fname = local_name ? local_name : f_name(file, fbuf); + if (daemon_filter_list.head + && check_filter(&daemon_filter_list, FLOG, fname, 0) < 0) { + rprintf(FERROR, "attempt to hack rsync failed.\n"); + exit_cleanup(RERR_PROTOCOL); + } + if (DEBUG_GTE(RECV, 1)) rprintf(FINFO, "recv_files(%s)\n", fname); @@ -645,12 +651,6 @@ int recv_files(int f_in, int f_out, char *local_name) cleanup_got_literal = 0; - if (daemon_filter_list.head - && check_filter(&daemon_filter_list, FLOG, fname, 0) < 0) { - rprintf(FERROR, "attempt to hack rsync failed.\n"); - exit_cleanup(RERR_PROTOCOL); - } - if (read_batch) { int wanted = redoing ? we_want_redo(ndx) |