mirror of
git://anongit.mindrot.org/openssh.git
synced 2024-11-23 18:23:25 +08:00
- Cygwin sftp/sftp-server binary mode patch from Corinna Vinschen
<vinschen@redhat.com>
This commit is contained in:
parent
6e77a538ca
commit
402b331945
@ -1,5 +1,7 @@
|
|||||||
20010414
|
20010414
|
||||||
- Sync with OpenBSD glob.c, strlcat.c and vis.c changes
|
- Sync with OpenBSD glob.c, strlcat.c and vis.c changes
|
||||||
|
- Cygwin sftp/sftp-server binary mode patch from Corinna Vinschen
|
||||||
|
<vinschen@redhat.com>
|
||||||
|
|
||||||
20010413
|
20010413
|
||||||
- OpenBSD CVS Sync
|
- OpenBSD CVS Sync
|
||||||
@ -5052,4 +5054,4 @@
|
|||||||
- Wrote replacements for strlcpy and mkdtemp
|
- Wrote replacements for strlcpy and mkdtemp
|
||||||
- Released 1.0pre1
|
- Released 1.0pre1
|
||||||
|
|
||||||
$Id: ChangeLog,v 1.1108 2001/04/13 14:22:33 djm Exp $
|
$Id: ChangeLog,v 1.1109 2001/04/13 14:28:42 djm Exp $
|
||||||
|
@ -15,12 +15,11 @@
|
|||||||
|
|
||||||
#include "includes.h"
|
#include "includes.h"
|
||||||
|
|
||||||
RCSID("$Id: bsd-cygwin_util.c,v 1.3 2001/02/18 01:30:56 djm Exp $");
|
RCSID("$Id: bsd-cygwin_util.c,v 1.4 2001/04/13 14:28:42 djm Exp $");
|
||||||
|
|
||||||
#ifdef HAVE_CYGWIN
|
#ifdef HAVE_CYGWIN
|
||||||
|
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <io.h>
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <sys/vfs.h>
|
#include <sys/vfs.h>
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
@ -13,13 +13,15 @@
|
|||||||
* binary mode on Windows systems.
|
* binary mode on Windows systems.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: bsd-cygwin_util.h,v 1.3 2001/02/18 01:30:56 djm Exp $ */
|
/* $Id: bsd-cygwin_util.h,v 1.4 2001/04/13 14:28:43 djm Exp $ */
|
||||||
|
|
||||||
#ifndef _BSD_CYGWIN_UTIL_H
|
#ifndef _BSD_CYGWIN_UTIL_H
|
||||||
#define _BSD_CYGWIN_UTIL_H
|
#define _BSD_CYGWIN_UTIL_H
|
||||||
|
|
||||||
#ifdef HAVE_CYGWIN
|
#ifdef HAVE_CYGWIN
|
||||||
|
|
||||||
|
#include <io.h>
|
||||||
|
|
||||||
int binary_open(const char *filename, int flags, ...);
|
int binary_open(const char *filename, int flags, ...);
|
||||||
int binary_pipe(int fd[2]);
|
int binary_pipe(int fd[2]);
|
||||||
int check_nt_auth(int pwd_authenticated, uid_t uid);
|
int check_nt_auth(int pwd_authenticated, uid_t uid);
|
||||||
|
3
scp.c
3
scp.c
@ -291,6 +291,9 @@ main(argc, argv)
|
|||||||
case 't': /* "to" */
|
case 't': /* "to" */
|
||||||
iamremote = 1;
|
iamremote = 1;
|
||||||
tflag = 1;
|
tflag = 1;
|
||||||
|
#ifdef HAVE_CYGWIN
|
||||||
|
setmode(0, O_BINARY);
|
||||||
|
#endif
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
usage();
|
usage();
|
||||||
|
@ -1043,6 +1043,11 @@ main(int ac, char **av)
|
|||||||
in = dup(STDIN_FILENO);
|
in = dup(STDIN_FILENO);
|
||||||
out = dup(STDOUT_FILENO);
|
out = dup(STDOUT_FILENO);
|
||||||
|
|
||||||
|
#ifdef HAVE_CYGWIN
|
||||||
|
setmode(in, O_BINARY);
|
||||||
|
setmode(out, O_BINARY);
|
||||||
|
#endif
|
||||||
|
|
||||||
max = 0;
|
max = 0;
|
||||||
if (in > max)
|
if (in > max)
|
||||||
max = in;
|
max = in;
|
||||||
|
Loading…
Reference in New Issue
Block a user