From: Wayne Davison Date: Sun, 7 Aug 2022 15:56:39 +0000 (-0700) Subject: Make sure that --read-batch doesn't try to check args. X-Git-Tag: v3.2.5pre2~9 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b7fdc9ef0e5fe2d179058c0ce326c9075f64443c;p=thirdparty%2Frsync.git Make sure that --read-batch doesn't try to check args. --- diff --git a/exclude.c b/exclude.c index cd77c543..e5991009 100644 --- a/exclude.c +++ b/exclude.c @@ -40,6 +40,7 @@ extern int delete_excluded; extern int cvs_exclude; extern int sanitize_paths; extern int protocol_version; +extern int read_batch; extern int list_only; extern int module_id; @@ -310,7 +311,7 @@ void add_implied_include(const char *arg) int slash_cnt = 1; /* We know we're adding a leading slash. */ const char *cp; char *p; - if (am_server || old_style_args || list_only || filesfrom_host != NULL) + if (am_server || old_style_args || list_only || read_batch || filesfrom_host != NULL) return; if (relative_paths) { if ((cp = strstr(arg, "/./")) != NULL)