Commit 411c04f0 authored by Wayne Davison's avatar Wayne Davison

If readdir() gives us an empty name, reject it.

parent 5d935dce
......@@ -1469,6 +1469,13 @@ static void send_directory(int f, struct file_list *flist, char *fbuf, int len,
full_fname(fbuf));
continue;
}
if (dname[0] == '\0') {
io_error |= IOERR_GENERAL;
rprintf(FINFO,
"cannot send file with empty name in %s\n",
full_fname(fbuf));
continue;
}
send_file_name(f, flist, fbuf, NULL, flags, filter_level);
}
......
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