* but checking the pre-negotiated value allows the user to use a
* --protocol=29 override to avoid the use of this -eFLAGS opt. */
if (protocol_version >= 30) {
+ /* Use "eFlags" alias so that cull_options doesn't think that these are no-arg option letters. */
+#define eFlags argstr
/* We make use of the -e option to let the server know about
* any pre-release protocol version && some behavior flags. */
- argstr[x++] = 'e';
+ eFlags[x++] = 'e';
#if SUBPROTOCOL_VERSION != 0
if (protocol_version == PROTOCOL_VERSION) {
x += snprintf(argstr+x, sizeof argstr - x,
PROTOCOL_VERSION, SUBPROTOCOL_VERSION);
} else
#endif
- argstr[x++] = '.';
+ eFlags[x++] = '.';
if (allow_inc_recurse)
- argstr[x++] = 'i';
+ eFlags[x++] = 'i';
#ifdef CAN_SET_SYMLINK_TIMES
- argstr[x++] = 'L'; /* symlink time-setting support */
+ eFlags[x++] = 'L'; /* symlink time-setting support */
#endif
#ifdef ICONV_OPTION
- argstr[x++] = 's'; /* symlink iconv translation support */
+ eFlags[x++] = 's'; /* symlink iconv translation support */
#endif
- argstr[x++] = 'f'; /* flist I/O-error safety support */
- argstr[x++] = 'x'; /* xattr hardlink optimization not desired */
+ eFlags[x++] = 'f'; /* flist I/O-error safety support */
+ eFlags[x++] = 'x'; /* xattr hardlink optimization not desired */
+#undef eFlags
}
if (x >= (int)sizeof argstr) { /* Not possible... */
our %long_opt = (
'append' => 0,
'backup-dir' => 2,
+ 'block-size' => 1,
'bwlimit' => 1,
'checksum-seed' => 1,
'compare-dest' => 2,
'force' => 0,
'from0' => 0,
'fuzzy' => 0,
+ 'group' => 0,
'groupmap' => 1,
+ 'hard-links' => 0,
'iconv' => 1,
'ignore-errors' => 0,
'ignore-existing' => 0,
'ignore-missing-args' => 0,
+ 'ignore-times' => 0,
'info' => 1,
'inplace' => 0,
'link-dest' => 2,
+ 'links' => 0,
'list-only' => 0,
'log-file' => 3,
'log-format' => 1,
'no-relative' => 0,
'no-specials' => 0,
'numeric-ids' => 0,
+ 'one-file-system' => 0,
'only-write-batch' => 1,
+ 'owner' => 0,
'partial' => 0,
'partial-dir' => 2,
+ 'perms' => 0,
'preallocate' => 0,
+ 'recursive' => 0,
'remove-sent-files' => $ro ? -1 : 0,
'remove-source-files' => $ro ? -1 : 0,
'safe-links' => 0,
'super' => 0,
'temp-dir' => 2,
'timeout' => 1,
+ 'times' => 0,
'use-qsort' => 0,
'usermap' => 1,
);