summaryrefslogtreecommitdiff
path: root/sftp-server.c
diff options
context:
space:
mode:
Diffstat (limited to 'sftp-server.c')
-rw-r--r--sftp-server.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sftp-server.c b/sftp-server.c
index 20a601f99..cf4e273f8 100644
--- a/sftp-server.c
+++ b/sftp-server.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: sftp-server.c,v 1.88 2009/10/17 12:10:39 sobrado Exp $ */ 1/* $OpenBSD: sftp-server.c,v 1.89 2010/01/04 02:25:15 djm Exp $ */
2/* 2/*
3 * Copyright (c) 2000-2004 Markus Friedl. All rights reserved. 3 * Copyright (c) 2000-2004 Markus Friedl. All rights reserved.
4 * 4 *
@@ -1397,8 +1397,8 @@ sftp_server_main(int argc, char **argv, struct passwd *user_pw)
1397 logit("session opened for local user %s from [%s]", 1397 logit("session opened for local user %s from [%s]",
1398 pw->pw_name, client_addr); 1398 pw->pw_name, client_addr);
1399 1399
1400 in = dup(STDIN_FILENO); 1400 in = STDIN_FILENO;
1401 out = dup(STDOUT_FILENO); 1401 out = STDOUT_FILENO;
1402 1402
1403#ifdef HAVE_CYGWIN 1403#ifdef HAVE_CYGWIN
1404 setmode(in, O_BINARY); 1404 setmode(in, O_BINARY);