version 1.253, 2023/03/03 03:12:24 |
version 1.254, 2023/03/27 03:25:08 |
|
|
struct sftp_conn *conn = NULL, *conn2 = NULL; |
struct sftp_conn *conn = NULL, *conn2 = NULL; |
arglist alist; |
arglist alist; |
int i, r, status; |
int i, r, status; |
|
struct stat sb; |
u_int j; |
u_int j; |
|
|
memset(&alist, '\0', sizeof(alist)); |
memset(&alist, '\0', sizeof(alist)); |
|
|
errs = 1; |
errs = 1; |
} else { /* local to remote */ |
} else { /* local to remote */ |
if (mode == MODE_SFTP) { |
if (mode == MODE_SFTP) { |
|
/* no need to glob: already done by shell */ |
|
if (stat(argv[i], &sb) != 0) { |
|
fatal("stat local \"%s\": %s", argv[i], |
|
strerror(errno)); |
|
} |
if (remin == -1) { |
if (remin == -1) { |
/* Connect to remote now */ |
/* Connect to remote now */ |
conn = do_sftp_connect(thost, tuser, |
conn = do_sftp_connect(thost, tuser, |