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
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