From: Wayne Davison Date: Wed, 17 Aug 2022 23:57:39 +0000 (-0700) Subject: Fix issue when the files-from list isn't nl terminated. X-Git-Tag: v3.2.6~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a182507bef2d0cd92052b3c5ebaf1d98278e0dad;p=thirdparty%2Frsync.git Fix issue when the files-from list isn't nl terminated. --- diff --git a/exclude.c b/exclude.c index 730d04ef..777874aa 100644 --- a/exclude.c +++ b/exclude.c @@ -361,6 +361,8 @@ void implied_include_partial_string(const char *s_start, const char *s_end) void free_implied_include_partial_string() { if (partial_string_buf) { + if (partial_string_len) + add_implied_include("", 0); free(partial_string_buf); partial_string_buf = NULL; }