]> andersk Git - openssh.git/blobdiff - session.c
- djm@cvs.openbsd.org 2008/02/13 22:38:17
[openssh.git] / session.c
index 545e27fb78fd0c2fef1dbdef7e1c409d96449939..589a15a6d80e772e7d637a8de8dd1c407d023ffd 100644 (file)
--- a/session.c
+++ b/session.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: session.c,v 1.227 2008/02/10 10:54:29 djm Exp $ */
+/* $OpenBSD: session.c,v 1.228 2008/02/13 22:38:17 djm Exp $ */
 /*
  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
  *                    All rights reserved
@@ -94,9 +94,6 @@
 #include <kafs.h>
 #endif
 
-/* Magic name for internal sftp-server */
-#define INTERNAL_SFTP_NAME     "internal-sftp"
-
 /* func */
 
 Session *session_new(void);
@@ -491,6 +488,8 @@ do_exec_no_pty(Session *s, const char *command)
                cray_init_job(s->pw); /* set up cray jid and tmpdir */
 #endif
 
+               closefrom(STDERR_FILENO + 1);
+
                /* Do processing for the child (exec command etc). */
                do_child(s, command);
                /* NOTREACHED */
@@ -611,6 +610,8 @@ do_exec_pty(Session *s, const char *command)
 # endif
 #endif
 
+               closefrom(STDERR_FILENO + 1);
+
                /* Do common processing for the child, such as execing the command. */
                do_child(s, command);
                /* NOTREACHED */
This page took 0.031114 seconds and 4 git commands to generate.