version 1.258, 2023/09/08 05:56:13 |
version 1.259, 2023/09/10 23:12:32 |
|
|
/* Needed for sftp */ |
/* Needed for sftp */ |
volatile sig_atomic_t interrupted = 0; |
volatile sig_atomic_t interrupted = 0; |
|
|
int remote_glob(struct sftp_conn *, const char *, int, |
int sftp_glob(struct sftp_conn *, const char *, int, |
int (*)(const char *, int), glob_t *); /* proto for sftp-glob.c */ |
int (*)(const char *, int), glob_t *); /* proto for sftp-glob.c */ |
|
|
static void |
static void |
|
|
} |
} |
|
|
debug3_f("copying remote %s to local %s", abs_src, dst); |
debug3_f("copying remote %s to local %s", abs_src, dst); |
if ((r = remote_glob(conn, abs_src, GLOB_NOCHECK|GLOB_MARK, |
if ((r = sftp_glob(conn, abs_src, GLOB_NOCHECK|GLOB_MARK, |
NULL, &g)) != 0) { |
NULL, &g)) != 0) { |
if (r == GLOB_NOSPACE) |
if (r == GLOB_NOSPACE) |
error("%s: too many glob matches", src); |
error("%s: too many glob matches", src); |
|
|
} |
} |
|
|
debug3_f("copying remote %s to remote %s", abs_src, target); |
debug3_f("copying remote %s to remote %s", abs_src, target); |
if ((r = remote_glob(from, abs_src, GLOB_NOCHECK|GLOB_MARK, |
if ((r = sftp_glob(from, abs_src, GLOB_NOCHECK|GLOB_MARK, |
NULL, &g)) != 0) { |
NULL, &g)) != 0) { |
if (r == GLOB_NOSPACE) |
if (r == GLOB_NOSPACE) |
error("%s: too many glob matches", src); |
error("%s: too many glob matches", src); |