MCPcopy Index your code
hub / github.com/RsyncProject/rsync / option_error

Function option_error

options.c:893–904  ·  view source on GitHub ↗

* Store the option error message, if any, so that we can log the * connection attempt (which requires parsing the options), and then * show the error later on. **/

Source from the content-addressed store, hash-verified

891 * show the error later on.
892 **/
893void option_error(void)
894{
895 if (!err_buf[0]) {
896 strlcpy(err_buf, "Error parsing options: option may "
897 "be supported on client but not on server?\n",
898 sizeof err_buf);
899 }
900
901 rprintf(FERROR, RSYNC_NAME ": %s", err_buf);
902 io_flush(MSG_FLUSH);
903 msleep(20);
904}
905
906
907static void parse_one_refuse_match(int negated, const char *ref, const struct poptOption *list_end)

Callers 3

local_childFunction · 0.85
mainFunction · 0.85
rsync_moduleFunction · 0.85

Calls 4

strlcpyFunction · 0.85
io_flushFunction · 0.85
msleepFunction · 0.85
rprintfFunction · 0.70

Tested by

no test coverage detected