Commit 2a5d5a8c authored by Wayne Davison's avatar Wayne Davison

If we're outputting a message about the remote file in a

single-file transfer, we need to make sure that the file's
name is the generic-transfer name and not a local name.
parent f7112154
......@@ -723,6 +723,8 @@ static void recv_generator(char *fname, struct file_struct *file, int ndx,
if (max_size && file->length > max_size) {
if (verbose > 1) {
if (the_file_list->count == 1)
fname = f_name(file);
rprintf(FINFO, "%s is over max-size\n",
safe_fname(fname));
}
......@@ -733,6 +735,8 @@ static void recv_generator(char *fname, struct file_struct *file, int ndx,
#ifdef SUPPORT_LINKS
if (safe_symlinks && unsafe_symlink(file->u.link, fname)) {
if (verbose) {
if (the_file_list->count == 1)
fname = f_name(file);
rprintf(FINFO,
"ignoring unsafe symlink %s -> \"%s\"\n",
full_fname(fname),
......@@ -829,6 +833,8 @@ static void recv_generator(char *fname, struct file_struct *file, int ndx,
return;
if (!S_ISREG(file->mode)) {
if (the_file_list->count == 1)
fname = f_name(file);
rprintf(FINFO, "skipping non-regular file \"%s\"\n",
safe_fname(fname));
return;
......
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