diff options
Diffstat (limited to 'sftp-server.c')
-rw-r--r-- | sftp-server.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sftp-server.c b/sftp-server.c index 0695a9824..75c19c8a6 100644 --- a/sftp-server.c +++ b/sftp-server.c | |||
@@ -1043,6 +1043,11 @@ main(int ac, char **av) | |||
1043 | in = dup(STDIN_FILENO); | 1043 | in = dup(STDIN_FILENO); |
1044 | out = dup(STDOUT_FILENO); | 1044 | out = dup(STDOUT_FILENO); |
1045 | 1045 | ||
1046 | #ifdef HAVE_CYGWIN | ||
1047 | setmode(in, O_BINARY); | ||
1048 | setmode(out, O_BINARY); | ||
1049 | #endif | ||
1050 | |||
1046 | max = 0; | 1051 | max = 0; |
1047 | if (in > max) | 1052 | if (in > max) |
1048 | max = in; | 1053 | max = in; |