From 2f2b61d159e93e3da97c21da3d644c2c549bf12c Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Fri, 25 Oct 2019 13:29:50 +0200 Subject: [PATCH] Fix logic to append slash to the source directory. This bug was introduced recently in commit dd3f58c0bdf1 (create_rsync_argv(): Allocate correctly sized arg array) which redefined N. --- dss.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dss.c b/dss.c index 217dfaf..5f35435 100644 --- a/dss.c +++ b/dss.c @@ -1444,7 +1444,7 @@ static void create_rsync_argv(char ***argv, int64_t *num) OPT_STRING_VAL(DSS, REMOTE_USER) : logname, OPT_STRING_VAL(DSS, REMOTE_HOST), lls_string_val(j, OPT_RESULT(DSS, SOURCE_DIR)), - N == 1? "/" : "" + OPT_GIVEN(DSS, SOURCE_DIR) == 1? "/" : "" ); } } -- 2.39.5