summaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
Diffstat (limited to 'session.c')
-rw-r--r--session.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/session.c b/session.c
index 545e27fb7..589a15a6d 100644
--- a/session.c
+++ b/session.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: session.c,v 1.227 2008/02/10 10:54:29 djm Exp $ */ 1/* $OpenBSD: session.c,v 1.228 2008/02/13 22:38:17 djm Exp $ */
2/* 2/*
3 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 3 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
4 * All rights reserved 4 * All rights reserved
@@ -94,9 +94,6 @@
94#include <kafs.h> 94#include <kafs.h>
95#endif 95#endif
96 96
97/* Magic name for internal sftp-server */
98#define INTERNAL_SFTP_NAME "internal-sftp"
99
100/* func */ 97/* func */
101 98
102Session *session_new(void); 99Session *session_new(void);
@@ -491,6 +488,8 @@ do_exec_no_pty(Session *s, const char *command)
491 cray_init_job(s->pw); /* set up cray jid and tmpdir */ 488 cray_init_job(s->pw); /* set up cray jid and tmpdir */
492#endif 489#endif
493 490
491 closefrom(STDERR_FILENO + 1);
492
494 /* Do processing for the child (exec command etc). */ 493 /* Do processing for the child (exec command etc). */
495 do_child(s, command); 494 do_child(s, command);
496 /* NOTREACHED */ 495 /* NOTREACHED */
@@ -611,6 +610,8 @@ do_exec_pty(Session *s, const char *command)
611# endif 610# endif
612#endif 611#endif
613 612
613 closefrom(STDERR_FILENO + 1);
614
614 /* Do common processing for the child, such as execing the command. */ 615 /* Do common processing for the child, such as execing the command. */
615 do_child(s, command); 616 do_child(s, command);
616 /* NOTREACHED */ 617 /* NOTREACHED */