Now logging sshd.pid at %programdata%\ssh (#269)

PowerShell/Win32-OpenSSH#982
This commit is contained in:
Manoj Ampalam 2018-01-29 21:59:48 -08:00 committed by GitHub
parent bad5548188
commit 02d07309e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -3950,8 +3950,6 @@ channel_disable_adm_local_opens(struct ssh *ssh)
void
channel_clear_permitted_opens(struct ssh *ssh)
{
if(ssh == NULL)
return;
struct ssh_channels *sc = ssh->chanctxt;
sc->permitted_opens = xrecallocarray(sc->permitted_opens,

View File

@ -1565,7 +1565,7 @@
#define _PATH_PASSWD_PROG "/usr/bin/passwd"
/* Specify location of ssh.pid */
#define _PATH_SSH_PIDDIR "."
/* #undef _PATH_SSH_PIDDIR */
/* Define if we don't have struct __res_state in resolv.h */
#define __res_state state
@ -1693,6 +1693,7 @@
#define _PATH_PRIVSEP_CHROOT_DIR "."
#define SSHDIR "__PROGRAMDATA__\\ssh"
#define _PATH_SSH_PIDDIR SSHDIR
#define _PATH_SFTP_SERVER "sftp-server.exe"
#define _PATH_SSH_PROGRAM "ssh.exe"
#define _PATH_LS "dir"