mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-18 19:41:01 -05:00
Move the restricted_acl flag into winsecur.c.
It's silly to set it at each call site of restrict_process_acl() if that function returns success! More sensible to have it be a flag in the same source file as restrict_process_acl(), set as an automatic _side effect_ of success. I've renamed the variable itself, and the global name 'restricted_acl' is now a query function that asks winsecur.c whether that operation has been (successfully) performed.
This commit is contained in:
@ -714,7 +714,7 @@ char *ssh_sftp_get_cmdline(const char *prompt, bool no_fds_ok)
|
||||
|
||||
void platform_psftp_pre_conn_setup(LogPolicy *lp)
|
||||
{
|
||||
if (restricted_acl) {
|
||||
if (restricted_acl()) {
|
||||
lp_eventlog(lp, "Running with restricted process ACL");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user