commit | 402b3319456c1f0da0822319c3813c68e155726d | [log] [tgz] |
---|---|---|
author | Damien Miller <djm@mindrot.org> | Sat Apr 14 00:28:42 2001 +1000 |
committer | Damien Miller <djm@mindrot.org> | Sat Apr 14 00:28:42 2001 +1000 |
tree | b9e1a10032f4f13327ba72e1f2a69e6ceaca776a | |
parent | 6e77a538ca63f2ecbab74656839e77084a2db425 [diff] [blame] |
- Cygwin sftp/sftp-server binary mode patch from Corinna Vinschen <vinschen@redhat.com>
diff --git a/sftp-server.c b/sftp-server.c index 0695a98..75c19c8 100644 --- a/sftp-server.c +++ b/sftp-server.c
@@ -1043,6 +1043,11 @@ in = dup(STDIN_FILENO); out = dup(STDOUT_FILENO); +#ifdef HAVE_CYGWIN + setmode(in, O_BINARY); + setmode(out, O_BINARY); +#endif + max = 0; if (in > max) max = in;