Skip to content

Commit 6b70a28

Browse files
committed
sshd.exe hostkeys loading fix
sshd.exe would not find ssh_host keys without this change. Chnage made for test running reveresed
1 parent cae0576 commit 6b70a28

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

authfile.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,19 +102,13 @@ sshkey_load_file(int fd, struct sshbuf *blob)
102102
struct stat st;
103103
int r;
104104

105-
#ifndef WIN32_FIXME
106105
if (fstat(fd, &st) < 0)
107106
return SSH_ERR_SYSTEM_ERROR;
108107
if ((st.st_mode & (S_IFSOCK|S_IFCHR|S_IFIFO)) == 0 &&
109108
st.st_size > MAX_KEY_FILE_SIZE)
110109
return SSH_ERR_INVALID_FORMAT;
111-
#endif
112110
for (;;) {
113-
#ifdef WIN32_FIXME
114-
if ((len = atomicio(_read, fd, buf, sizeof(buf))) == 0) {
115-
#else
116111
if ((len = atomicio(read, fd, buf, sizeof(buf))) == 0) {
117-
#endif
118112
if (errno == EPIPE)
119113
break;
120114
r = SSH_ERR_SYSTEM_ERROR;

0 commit comments

Comments
 (0)