diff options
author | Damien Miller <djm@cvs.openbsd.org> | 2010-01-04 02:25:16 +0000 |
---|---|---|
committer | Damien Miller <djm@cvs.openbsd.org> | 2010-01-04 02:25:16 +0000 |
commit | c118560ef4d958529b00097d4116a16857ffc949 (patch) | |
tree | 249a6a603d2ce44819bbad30f1cc21071d6c3428 /usr.bin | |
parent | db802cf6e9697b95e5ae1ca6acc97c79702735ef (diff) |
bz#1566 don't unnecessarily dup() in and out fds for sftp-server; ok markus@
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/ssh/sftp-server.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ssh/sftp-server.c b/usr.bin/ssh/sftp-server.c index 8430d07d236..4248aedeeeb 100644 --- a/usr.bin/ssh/sftp-server.c +++ b/usr.bin/ssh/sftp-server.c @@ -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. * @@ -1368,8 +1368,8 @@ sftp_server_main(int argc, char **argv, struct passwd *user_pw) logit("session opened for local user %s from [%s]", pw->pw_name, client_addr); - in = dup(STDIN_FILENO); - out = dup(STDOUT_FILENO); + in = STDIN_FILENO; + out = STDOUT_FILENO; max = 0; if (in > max) |