mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-26 23:34:55 +02:00
Fix sshd logging (#128)
PowerShell/Win32-OpenSSH#709 https://github.com/PowerShell/Win32-OpenSSH/issues/708
This commit is contained in:
parent
fae64876f3
commit
7d929c2954
@ -181,7 +181,7 @@ check_secure_file_permission(const char *name, struct passwd * pw)
|
|||||||
}
|
}
|
||||||
cleanup:
|
cleanup:
|
||||||
if(bad_user)
|
if(bad_user)
|
||||||
free(bad_user);
|
LocalFree(bad_user);
|
||||||
if (pSD)
|
if (pSD)
|
||||||
LocalFree(pSD);
|
LocalFree(pSD);
|
||||||
if (user_sid)
|
if (user_sid)
|
||||||
|
8
sshd.c
8
sshd.c
@ -1674,6 +1674,14 @@ main(int ac, char **av)
|
|||||||
/* Fill in default values for those options not explicitly set. */
|
/* Fill in default values for those options not explicitly set. */
|
||||||
fill_default_server_options(&options);
|
fill_default_server_options(&options);
|
||||||
|
|
||||||
|
#ifdef WINDOWS
|
||||||
|
/*
|
||||||
|
* For windows, enable logging right away to capture failures while loading private host keys.
|
||||||
|
* On Unix, logging at configured level is not done until private host keys are loaded. Why??
|
||||||
|
*/
|
||||||
|
log_init(__progname, options.log_level, options.log_facility, log_stderr);
|
||||||
|
#endif // WINDOWS
|
||||||
|
|
||||||
/* challenge-response is implemented via keyboard interactive */
|
/* challenge-response is implemented via keyboard interactive */
|
||||||
if (options.challenge_response_authentication)
|
if (options.challenge_response_authentication)
|
||||||
options.kbd_interactive_authentication = 1;
|
options.kbd_interactive_authentication = 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user