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:
|
||||
if(bad_user)
|
||||
free(bad_user);
|
||||
LocalFree(bad_user);
|
||||
if (pSD)
|
||||
LocalFree(pSD);
|
||||
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_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 */
|
||||
if (options.challenge_response_authentication)
|
||||
options.kbd_interactive_authentication = 1;
|
||||
|
|
Loading…
Reference in New Issue