mirror of
https://github.com/PowerShell/Win32-OpenSSH.git
synced 2025-04-08 19:35:37 +02:00
Fix sshd.log file to be created in the correct place
sshd.log of child was created in root / directory. It should be in the directory where sshd.exe binary is located. Otherwise logged data were not being found in the central sshd.log file where user's expect.
This commit is contained in:
parent
802d9a3349
commit
f43f33da8b
2
sshd.c
2
sshd.c
@ -2750,8 +2750,10 @@ main(int ac, char **av)
|
|||||||
|
|
||||||
/* Chdir to the root directory so that the current disk can be
|
/* Chdir to the root directory so that the current disk can be
|
||||||
unmounted if desired. */
|
unmounted if desired. */
|
||||||
|
#ifndef WIN32_FIXME
|
||||||
if (chdir("/") == -1)
|
if (chdir("/") == -1)
|
||||||
error("chdir(\"/\"): %s", strerror(errno));
|
error("chdir(\"/\"): %s", strerror(errno));
|
||||||
|
#endif
|
||||||
|
|
||||||
/* ignore SIGPIPE */
|
/* ignore SIGPIPE */
|
||||||
signal(SIGPIPE, SIG_IGN);
|
signal(SIGPIPE, SIG_IGN);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user