version 1.330, 2021/08/20 20:04:22 |
version 1.331, 2021/10/11 10:55:31 |
|
|
if (cmd == NULL || *cmd == '\0') |
if (cmd == NULL || *cmd == '\0') |
cmd = options_get_string(global_options, "copy-command"); |
cmd = options_get_string(global_options, "copy-command"); |
if (cmd != NULL && *cmd != '\0') { |
if (cmd != NULL && *cmd != '\0') { |
job = job_run(cmd, 0, NULL, s, NULL, NULL, NULL, NULL, NULL, |
job = job_run(cmd, 0, NULL, NULL, s, NULL, NULL, NULL, NULL, |
JOB_NOWAIT, -1, -1); |
NULL, JOB_NOWAIT, -1, -1); |
bufferevent_write(job_get_event(job), buf, *len); |
bufferevent_write(job_get_event(job), buf, *len); |
} |
} |
return (buf); |
return (buf); |