mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-01 03:22:48 -05:00
Log when -restrict-acl is in use.
Partly to reassure the user that they got what they asked for, and
partly so that's a clue for us in the logs when we get bug reports.
This involved repurposing platform_psftp_post_option_setup() (no longer
used since e22120fe
) as platform_psftp_pre_conn_setup(), and moving it
to after logging is set up.
This commit is contained in:
4
pscp.c
4
pscp.c
@ -517,6 +517,8 @@ static void do_cmd(char *host, char *user, char *cmd)
|
||||
logctx = log_init(NULL, conf);
|
||||
console_provide_logctx(logctx);
|
||||
|
||||
platform_psftp_pre_conn_setup();
|
||||
|
||||
err = back->init(NULL, &backhandle, conf,
|
||||
conf_get_str(conf, CONF_host),
|
||||
conf_get_int(conf, CONF_port),
|
||||
@ -2357,8 +2359,6 @@ int psftp_main(int argc, char *argv[])
|
||||
argv += i;
|
||||
back = NULL;
|
||||
|
||||
platform_psftp_post_option_setup();
|
||||
|
||||
if (list) {
|
||||
if (argc != 1)
|
||||
usage();
|
||||
|
Reference in New Issue
Block a user