If we reject a name due to a server-exclude, someone is trying to hack

rsync (because the generator would not have included this file).  Respond
with an exit.
This commit is contained in:
Wayne Davison committed 2004-07-30 07:02:37 +00:00
1 parent 65af3dab03
commit 33eff8bfd6
1 file changed
+2 -7
+2 -7
View File
@@ -426,13 +426,8 @@ int recv_files(int f_in, struct file_list *flist, char *local_name)
if (server_exclude_list.head
&& check_exclude(&server_exclude_list, fname,
S_ISDIR(file->mode)) < 0) {
if (verbose) {
rprintf(FINFO,
"skipping server-excluded update for \"%s\"\n",
safe_fname(fname));
}
discard_receive_data(f_in, file->length);
continue;
rprintf(FERROR, "attempt to hack rsync failed.\n");
exit_cleanup(RERR_PROTOCOL);
}
if (partial_dir) {