add a --ignore-errors option
[rsync.git] / flist.c
diff --git a/flist.c b/flist.c
index 1740209916fed5ae252b62af09c5bcd524c0a3ae..f12bf8933d873173e30d8160dde99b97c95826ff 100644 (file)
--- a/flist.c
+++ b/flist.c
@@ -862,7 +862,8 @@ struct file_list *recv_file_list(int f)
   /* if protocol version is >= 17 then recv the io_error flag */
   if (f != -1 && remote_version >= 17) {
          extern int module_id;
-         if (lp_ignore_errors(module_id)) {
+         extern int ignore_errors;
+         if (lp_ignore_errors(module_id) || ignore_errors) {
                  read_int(f);
          } else {
                  io_error |= read_int(f);