mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-10-22 22:04:15 -04:00
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:
1 parent
65af3dab03
commit
33eff8bfd6
1 file changed
+2
-7
+2
-7
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user