X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/6303f9a25f96eb5a4af395f76e1577ad0d502770..33a04593ee76204d277574bd34c352df2fbd4e42:/options.c diff --git a/options.c b/options.c index d8993c82..4e26ebef 100644 --- a/options.c +++ b/options.c @@ -1978,7 +1978,8 @@ void server_options(char **args, int *argc_p) if (!relative_paths) args[ac++] = "--no-relative"; } - if (relative_paths && !implied_dirs && !am_sender) + /* It's OK that this checks the upper-bound of the protocol_version. */ + if (relative_paths && !implied_dirs && (!am_sender || protocol_version >= 30)) args[ac++] = "--no-implied-dirs"; if (fuzzy_basis && am_sender)