Ported recent changes for Windows

This commit is contained in:
Manoj Ampalam 2017-04-10 16:10:15 -07:00
parent b533d79ced
commit b924b42dea

5
sshd.c
View File

@ -233,7 +233,12 @@ int use_privsep = -1;
#endif #endif
struct monitor *pmonitor = NULL; struct monitor *pmonitor = NULL;
int privsep_is_preauth = 1; int privsep_is_preauth = 1;
#ifdef WINDOWS
/* Windows does not use Unix privilege separation model */
static int privsep_chroot = 0;
#else
static int privsep_chroot = 1; static int privsep_chroot = 1;
#endif
/* global authentication context */ /* global authentication context */
Authctxt *the_authctxt = NULL; Authctxt *the_authctxt = NULL;