X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/de80679b6751427a875bc42af6d05f03c007d56a..6f0805f564a5f11e7e93d0b74ee907641c748d5b:/options.c diff --git a/options.c b/options.c index 5ed404dd..4e26ebef 100644 --- a/options.c +++ b/options.c @@ -20,6 +20,7 @@ */ #include "rsync.h" +#include "ifuncs.h" #include #include "zlib/zlib.h" @@ -1977,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)