diff options
author | djm <djm> | 2001-04-13 14:28:42 +0000 |
---|---|---|
committer | djm <djm> | 2001-04-13 14:28:42 +0000 |
commit | 40a6ef7e227719bd7f778684252d20d4f8d098b2 (patch) | |
tree | a049860599add460e777e874d72690da41762556 /sftp-server.c | |
parent | 7f2a09e58877c50c1281e48196e8e274401a03d0 (diff) | |
download | openssh-40a6ef7e227719bd7f778684252d20d4f8d098b2.tar.gz |
- Cygwin sftp/sftp-server binary mode patch from Corinna Vinschen
<vinschen@redhat.com>
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 0695a982..75c19c8a 100644 --- a/sftp-server.c +++ b/sftp-server.c @@ -1043,6 +1043,11 @@ main(int ac, char **av) 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; |