summaryrefslogtreecommitdiff
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 d317a71e1..c654cb66f 100644
--- a/scp.c
+++ b/scp.c
@@ -291,6 +291,9 @@ main(argc, argv)
291 case 't': /* "to" */ 291 case 't': /* "to" */
292 iamremote = 1; 292 iamremote = 1;
293 tflag = 1; 293 tflag = 1;
294#ifdef HAVE_CYGWIN
295 setmode(0, O_BINARY);
296#endif
294 break; 297 break;
295 default: 298 default:
296 usage(); 299 usage();