projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
We now have _some_ useful AE support, so mention what's missing specifically.
[u/mdw/putty]
/
psftp.c
diff --git
a/psftp.c
b/psftp.c
index
f528c21
..
2c97db2
100644
(file)
--- a/
psftp.c
+++ b/
psftp.c
@@
-34,6
+34,7
@@
static int do_sftp_init(void);
char *pwd, *homedir;
static Backend *back;
static void *backhandle;
char *pwd, *homedir;
static Backend *back;
static void *backhandle;
+static Config cfg;
/* ----------------------------------------------------------------------
* Higher-level helper functions used in commands.
/* ----------------------------------------------------------------------
* Higher-level helper functions used in commands.
@@
-1828,13
+1829,14
@@
static int psftp_connect(char *userhost, char *user, int portnumber)
back = &ssh_backend;
back = &ssh_backend;
- err = back->init(NULL, &backhandle,
cfg.host, cfg.port, &realhost,
0);
+ err = back->init(NULL, &backhandle,
&cfg, cfg.host, cfg.port, &realhost,
0);
if (err != NULL) {
fprintf(stderr, "ssh_init: %s\n", err);
return 1;
}
if (err != NULL) {
fprintf(stderr, "ssh_init: %s\n", err);
return 1;
}
- logctx = log_init(NULL);
+ logctx = log_init(NULL
, &cfg
);
back->provide_logctx(backhandle, logctx);
back->provide_logctx(backhandle, logctx);
+ console_provide_logctx(logctx);
ssh_sftp_init();
if (verbose && realhost != NULL)
printf("Connected to %s\n", realhost);
ssh_sftp_init();
if (verbose && realhost != NULL)
printf("Connected to %s\n", realhost);