summaryrefslogtreecommitdiff
path: root/scp.c
diff options
context:
space:
mode:
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();