We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cae0576 commit 6b70a28Copy full SHA for 6b70a28
authfile.c
@@ -102,19 +102,13 @@ sshkey_load_file(int fd, struct sshbuf *blob)
102
struct stat st;
103
int r;
104
105
-#ifndef WIN32_FIXME
106
if (fstat(fd, &st) < 0)
107
return SSH_ERR_SYSTEM_ERROR;
108
if ((st.st_mode & (S_IFSOCK|S_IFCHR|S_IFIFO)) == 0 &&
109
st.st_size > MAX_KEY_FILE_SIZE)
110
return SSH_ERR_INVALID_FORMAT;
111
-#endif
112
for (;;) {
113
-#ifdef WIN32_FIXME
114
- if ((len = atomicio(_read, fd, buf, sizeof(buf))) == 0) {
115
-#else
116
if ((len = atomicio(read, fd, buf, sizeof(buf))) == 0) {
117
118
if (errno == EPIPE)
119
break;
120
r = SSH_ERR_SYSTEM_ERROR;
0 commit comments