version 1.17, 2019/05/08 20:00:25 |
version 1.18, 2021/05/17 12:02:58 |
|
|
#include <sys/stat.h> |
#include <sys/stat.h> |
|
|
#include <assert.h> |
#include <assert.h> |
|
#include <err.h> |
#include <stdint.h> |
#include <stdint.h> |
#include <stdlib.h> |
#include <stdlib.h> |
#include <string.h> |
#include <string.h> |
|
|
if (sess->opts->ssh_prog) { |
if (sess->opts->ssh_prog) { |
ap = strdup(sess->opts->ssh_prog); |
ap = strdup(sess->opts->ssh_prog); |
if (ap == NULL) |
if (ap == NULL) |
goto out; |
err(ERR_NOMEM, NULL); |
|
|
while ((arg = strsep(&ap, " \t")) != NULL) { |
while ((arg = strsep(&ap, " \t")) != NULL) { |
if (arg[0] == '\0') { |
if (arg[0] == '\0') { |
|
|
addargs(&args, "%s", f->sink); |
addargs(&args, "%s", f->sink); |
|
|
return args.list; |
return args.list; |
out: |
|
freeargs(&args); |
|
ERR("calloc"); |
|
return NULL; |
|
} |
} |