files_from was specified.
- Pass the the sender the --no-implied-dirs option if --relative
was specified (or implied) and the sender is not the client.
char *remote_filesfrom_file = NULL;
int eol_nulls = 0;
int recurse = 0;
+int keep_dirs = 0;
int am_daemon = 0;
int daemon_over_rsh = 0;
int do_stats = 0;
preserve_uid = 1;
preserve_devices = 1;
}
+ if (recurse) {
+ keep_dirs = 1;
+ }
if (relative_paths < 0)
relative_paths = files_from? 1 : 0;
+ if (!relative_paths)
+ implied_dirs = 0;
*argv = poptGetArgs(pc);
*argc = count_args(*argv);
return 0;
}
}
+ keep_dirs = 1;
}
return 1;
if (!relative_paths)
args[ac++] = "--no-relative";
}
+ if (relative_paths && !implied_dirs && !am_sender)
+ args[ac++] = "--no-implied-dirs";
*argc = ac;
return;