If we reject a name due to a server-exclude, someone is trying to hack
authorWayne Davison <wayned@samba.org>
Fri, 30 Jul 2004 07:02:37 +0000 (07:02 +0000)
committerWayne Davison <wayned@samba.org>
Fri, 30 Jul 2004 07:02:37 +0000 (07:02 +0000)
rsync (because the generator would not have included this file).  Respond
with an exit.

receiver.c

index 1118beb..8cb2919 100644 (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) {