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:
@ -840,6 +840,10 @@ int WINAPI WinMain(HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show)
|
||||
}
|
||||
}
|
||||
|
||||
if (restricted_acl) {
|
||||
logevent(NULL, "Running with restricted process ACL");
|
||||
}
|
||||
|
||||
start_backend();
|
||||
|
||||
/*
|
||||
|
@ -633,6 +633,10 @@ int main(int argc, char **argv)
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (restricted_acl) {
|
||||
logevent(NULL, "Running with restricted process ACL");
|
||||
}
|
||||
|
||||
/*
|
||||
* Start up the connection.
|
||||
*/
|
||||
|
@ -747,8 +747,11 @@ char *ssh_sftp_get_cmdline(const char *prompt, int no_fds_ok)
|
||||
return ctx->line;
|
||||
}
|
||||
|
||||
void platform_psftp_post_option_setup(void)
|
||||
void platform_psftp_pre_conn_setup(void)
|
||||
{
|
||||
if (restricted_acl) {
|
||||
logevent(NULL, "Running with restricted process ACL");
|
||||
}
|
||||
}
|
||||
|
||||
/* ----------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user