version 1.317, 2021/02/22 08:31:19 |
version 1.318, 2021/03/02 10:56:45 |
|
|
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, s, NULL, NULL, NULL, NULL, NULL, JOB_NOWAIT, |
job = job_run(cmd, 0, NULL, s, NULL, NULL, NULL, NULL, NULL, |
-1, -1); |
JOB_NOWAIT, -1, -1); |
bufferevent_write(job_get_event(job), buf, *len); |
bufferevent_write(job_get_event(job), buf, *len); |
} |
} |
return (buf); |
return (buf); |