summaryrefslogtreecommitdiffstats
path: root/scp.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2001-04-14 00:28:42 +1000
committerDamien Miller <djm@mindrot.org>2001-04-14 00:28:42 +1000
commit402b3319456c1f0da0822319c3813c68e155726d (patch)
treeb9e1a10032f4f13327ba72e1f2a69e6ceaca776a /scp.c
parent6e77a538ca63f2ecbab74656839e77084a2db425 (diff)
- Cygwin sftp/sftp-server binary mode patch from Corinna Vinschen
<vinschen@redhat.com>
Diffstat (limited to 'scp.c')
-rw-r--r--scp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/scp.c b/scp.c
index d317a71e..c654cb66 100644
--- a/scp.c
+++ b/scp.c
@@ -291,6 +291,9 @@ main(argc, argv)
case 't': /* "to" */
iamremote = 1;
tflag = 1;
+#ifdef HAVE_CYGWIN
+ setmode(0, O_BINARY);
+#endif
break;
default:
usage();