From f43f33da8bb93a5c0804e6e2a71fe2f80aed4bc8 Mon Sep 17 00:00:00 2001 From: quamrulmina Date: Fri, 29 Jan 2016 02:53:53 -0600 Subject: [PATCH] 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. --- sshd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sshd.c b/sshd.c index 250b973..cf99125 100644 --- a/sshd.c +++ b/sshd.c @@ -2750,8 +2750,10 @@ main(int ac, char **av) /* Chdir to the root directory so that the current disk can be unmounted if desired. */ + #ifndef WIN32_FIXME if (chdir("/") == -1) error("chdir(\"/\"): %s", strerror(errno)); + #endif /* ignore SIGPIPE */ signal(SIGPIPE, SIG_IGN);