From: Andre Noll Date: Fri, 25 Oct 2019 11:29:50 +0000 (+0200) Subject: Fix logic to append slash to the source directory. X-Git-Tag: v1.0.1~4 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=2f2b61d159e93e3da97c21da3d644c2c549bf12c;p=dss.git 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. --- 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? "/" : "" ); } }