Fix build issue.
authorWayne Davison <wayne@opencoder.net>
Fri, 24 Jul 2020 20:00:25 +0000 (13:00 -0700)
committerWayne Davison <wayne@opencoder.net>
Fri, 24 Jul 2020 20:00:25 +0000 (13:00 -0700)
detect-renamed.diff

index 5df0843650d5ebc8b0be7f4618a29a7b4006d395..061b8d81a3a0ee253df659290b5b1c26a220bc7d 100644 (file)
@@ -38,7 +38,7 @@ TODO:
   a file that can't use it, while missing out on giving it to a file
   that could use it.
 
-based-on: c3cf174e5ed52e709ecdfd65c7d5da34c7574b96
+based-on: 1225eb4b2100b335ac6ec6d850ace76ca6ff3f67
 diff --git a/backup.c b/backup.c
 --- a/backup.c
 +++ b/backup.c
@@ -586,6 +586,18 @@ diff --git a/generator.c b/generator.c
        phase++;
        if (DEBUG_GTE(GENR, 1))
                rprintf(FINFO, "generate_files phase=%d\n", phase);
+diff --git a/main.c b/main.c
+--- a/main.c
++++ b/main.c
+@@ -716,7 +716,7 @@ static char *get_local_name(struct file_list *flist, char *dest_path)
+       trailing_slash = cp && !cp[1];
+       if (mkpath_dest_arg && statret < 0 && (cp || file_total > 1)) {
+-              int ret = make_path(dest_path, file_total > 1 && !trailing_slash ? 0 : MKP_DROP_NAME);
++              int ret = make_path(dest_path, ACCESSPERMS, file_total > 1 && !trailing_slash ? 0 : MKP_DROP_NAME);
+               if (ret < 0)
+                       goto mkdir_error;
+               if (INFO_GTE(NAME, 1)) {
 diff --git a/options.c b/options.c
 --- a/options.c
 +++ b/options.c