X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/78fc60cd29eac3007f5fb02f4e963d3729879a5f..f2ae9e8583d289ed876c3666bd533dba13ffbfb8:/options.c diff --git a/options.c b/options.c index 944bb249..8eb38110 100644 --- a/options.c +++ b/options.c @@ -72,7 +72,7 @@ int numeric_ids = 0; int force_delete = 0; int io_timeout = 0; int am_server = 0; -int am_sender = 0; +int am_sender = -1; int am_generator = 0; char *files_from = NULL; int filesfrom_fd = -1; @@ -825,6 +825,9 @@ int parse_arguments(int *argc, const char ***argv, int frommain) } } + if (am_sender < 0) + am_sender = 0; + #if !SUPPORT_LINKS if (preserve_links && !am_sender) { snprintf(err_buf, sizeof err_buf,