- djm@cvs.openbsd.org 2010/01/04 02:25:15
[sftp-server.c] bz#1566 don't unnecessarily dup() in and out fds for sftp-server; ok markus@
This commit is contained in:
parent
909d858d6b
commit
aaf51d2d5b
|
@ -150,6 +150,10 @@
|
||||||
by quoted filenames, but the UI could still be slightly improved.
|
by quoted filenames, but the UI could still be slightly improved.
|
||||||
In particular, it is quite slow for remote completion on large directories.
|
In particular, it is quite slow for remote completion on large directories.
|
||||||
bz#200; ok markus@
|
bz#200; ok markus@
|
||||||
|
- djm@cvs.openbsd.org 2010/01/04 02:25:15
|
||||||
|
[sftp-server.c]
|
||||||
|
bz#1566 don't unnecessarily dup() in and out fds for sftp-server;
|
||||||
|
ok markus@
|
||||||
|
|
||||||
20091226
|
20091226
|
||||||
- (tim) [contrib/cygwin/Makefile] Install ssh-copy-id and ssh-copy-id.1
|
- (tim) [contrib/cygwin/Makefile] Install ssh-copy-id and ssh-copy-id.1
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $OpenBSD: sftp-server.c,v 1.88 2009/10/17 12:10:39 sobrado Exp $ */
|
/* $OpenBSD: sftp-server.c,v 1.89 2010/01/04 02:25:15 djm Exp $ */
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2000-2004 Markus Friedl. All rights reserved.
|
* Copyright (c) 2000-2004 Markus Friedl. All rights reserved.
|
||||||
*
|
*
|
||||||
|
@ -1397,8 +1397,8 @@ sftp_server_main(int argc, char **argv, struct passwd *user_pw)
|
||||||
logit("session opened for local user %s from [%s]",
|
logit("session opened for local user %s from [%s]",
|
||||||
pw->pw_name, client_addr);
|
pw->pw_name, client_addr);
|
||||||
|
|
||||||
in = dup(STDIN_FILENO);
|
in = STDIN_FILENO;
|
||||||
out = dup(STDOUT_FILENO);
|
out = STDOUT_FILENO;
|
||||||
|
|
||||||
#ifdef HAVE_CYGWIN
|
#ifdef HAVE_CYGWIN
|
||||||
setmode(in, O_BINARY);
|
setmode(in, O_BINARY);
|
||||||
|
|
Loading…
Reference in New Issue