- rprintf(F," -W, --whole-file copy whole files, no incremental checks\n");
-@@ -285,7 +288,7 @@
- OPT_COPY_UNSAFE_LINKS, OPT_SAFE_LINKS, OPT_COMPARE_DEST,
- OPT_LOG_FORMAT, OPT_PASSWORD_FILE, OPT_SIZE_ONLY, OPT_ADDRESS,
- OPT_DELETE_AFTER, OPT_EXISTING, OPT_MAX_DELETE, OPT_BACKUP_DIR,
-- OPT_IGNORE_ERRORS, OPT_BWLIMIT, OPT_BLOCKING_IO,
-+ OPT_IGNORE_ERRORS, OPT_BWLIMIT, OPT_BLOCKING_IO, OPT_CHMOD,
- OPT_NO_BLOCKING_IO, OPT_WHOLE_FILE, OPT_NO_WHOLE_FILE,
- OPT_MODIFY_WINDOW, OPT_READ_BATCH, OPT_WRITE_BATCH, OPT_IGNORE_EXISTING};
-
-@@ -325,6 +328,7 @@
- {"perms", 'p', POPT_ARG_NONE, &preserve_perms , 0, 0, 0 },
- {"owner", 'o', POPT_ARG_NONE, &preserve_uid , 0, 0, 0 },
- {"group", 'g', POPT_ARG_NONE, &preserve_gid , 0, 0, 0 },
-+ {"chmod", 0, POPT_ARG_STRING, &chmod_mode, OPT_CHMOD, 0, 0 },
- {"devices", 'D', POPT_ARG_NONE, &preserve_devices , 0, 0, 0 },
- {"times", 't', POPT_ARG_NONE, &preserve_times , 0, 0, 0 },
- {"checksum", 'c', POPT_ARG_NONE, &always_checksum , 0, 0, 0 },
-@@ -563,6 +567,15 @@
- read_batch = 1;
- break;
+ rprintf(F," -W, --whole-file copy files whole (without rsync algorithm)\n");
+@@ -394,6 +398,7 @@ static struct poptOption long_options[]
+ {"perms", 'p', POPT_ARG_NONE, &preserve_perms, 0, 0, 0 },
+ {"owner", 'o', POPT_ARG_NONE, &preserve_uid, 0, 0, 0 },
+ {"group", 'g', POPT_ARG_NONE, &preserve_gid, 0, 0, 0 },
++ {"chmod", 0, POPT_ARG_STRING, &chmod_mode, 0, 0, 0 },
+ {"devices", 'D', POPT_ARG_NONE, &preserve_devices, 0, 0, 0 },
+ {"times", 't', POPT_ARG_NONE, &preserve_times, 0, 0, 0 },
+ {"omit-dir-times", 'O', POPT_ARG_NONE, &omit_dir_times, 0, 0, 0 },
+@@ -1058,6 +1063,13 @@ int parse_arguments(int *argc, const cha
+ return 0;
+ }