Commit 4f802c66 authored by Wayne Davison's avatar Wayne Davison

Fixed a just-introduced glitch in directory creation with --no-implied-dirs.

parent 33a04593
......@@ -1163,7 +1163,8 @@ static void recv_generator(char *fname, struct file_struct *file, int ndx,
} else {
const char *dn = file->dirname ? file->dirname : ".";
if (parent_dirname != dn && strcmp(parent_dirname, dn) != 0) {
if (implied_dirs_are_missing && do_stat(dn, &sx.st) < 0
if (relative_paths && !implied_dirs
&& do_stat(dn, &sx.st) < 0
&& create_directory_path(fname) < 0) {
rsyserr(FERROR, errno,
"recv_generator: mkdir %s failed",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment