]> git.tuebingen.mpg.de Git - dss.git/commitdiff
Fix logic to append slash to the source directory.
authorAndre Noll <maan@tuebingen.mpg.de>
Fri, 25 Oct 2019 11:29:50 +0000 (13:29 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Fri, 25 Oct 2019 11:29:50 +0000 (13:29 +0200)
This bug was introduced recently in commit dd3f58c0bdf1
(create_rsync_argv(): Allocate correctly sized arg array) which
redefined N.

dss.c

diff --git a/dss.c b/dss.c
index 217dfafd25c55741e564c0feb13c1ccfbad317d0..5f35435727e956c13bb82f6801fdbe251204665f 100644 (file)
--- 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? "/" : ""
                        );
                }
        }