diff options
Diffstat (limited to 'session.c')
-rw-r--r-- | session.c | 15 |
1 files changed, 10 insertions, 5 deletions
@@ -8,10 +8,7 @@ | |||
8 | */ | 8 | */ |
9 | 9 | ||
10 | #include "includes.h" | 10 | #include "includes.h" |
11 | RCSID("$OpenBSD: session.c,v 1.20 2000/06/18 04:42:54 markus Exp $"); | 11 | RCSID("$OpenBSD: session.c,v 1.22 2000/07/05 20:18:07 deraadt Exp $"); |
12 | #if defined(HAVE_USERSEC_H) | ||
13 | #include <usersec.h> | ||
14 | #endif | ||
15 | 12 | ||
16 | #include "xmalloc.h" | 13 | #include "xmalloc.h" |
17 | #include "ssh.h" | 14 | #include "ssh.h" |
@@ -35,6 +32,10 @@ RCSID("$OpenBSD: session.c,v 1.20 2000/06/18 04:42:54 markus Exp $"); | |||
35 | #include <proj.h> | 32 | #include <proj.h> |
36 | #endif /* WITH_IRIX_PROJECT */ | 33 | #endif /* WITH_IRIX_PROJECT */ |
37 | 34 | ||
35 | #if defined(HAVE_USERSEC_H) | ||
36 | #include <usersec.h> | ||
37 | #endif | ||
38 | |||
38 | #ifdef HAVE_OSF_SIA | 39 | #ifdef HAVE_OSF_SIA |
39 | # include <sia.h> | 40 | # include <sia.h> |
40 | # include <siad.h> | 41 | # include <siad.h> |
@@ -90,6 +91,8 @@ static const char *__progname = "sshd"; | |||
90 | extern int log_stderr; | 91 | extern int log_stderr; |
91 | extern int debug_flag; | 92 | extern int debug_flag; |
92 | 93 | ||
94 | extern int startup_pipe; | ||
95 | |||
93 | /* Local Xauthority file. */ | 96 | /* Local Xauthority file. */ |
94 | static char *xauthfile; | 97 | static char *xauthfile; |
95 | 98 | ||
@@ -166,6 +169,7 @@ do_authenticated(struct passwd * pw) | |||
166 | * authentication. | 169 | * authentication. |
167 | */ | 170 | */ |
168 | alarm(0); | 171 | alarm(0); |
172 | close(startup_pipe); | ||
169 | 173 | ||
170 | /* | 174 | /* |
171 | * Inform the channel mechanism that we are the server side and that | 175 | * Inform the channel mechanism that we are the server side and that |
@@ -1457,7 +1461,7 @@ session_subsystem_req(Session *s) | |||
1457 | int | 1461 | int |
1458 | session_x11_req(Session *s) | 1462 | session_x11_req(Session *s) |
1459 | { | 1463 | { |
1460 | if (!no_port_forwarding_flag) { | 1464 | if (no_x11_forwarding_flag) { |
1461 | debug("X11 forwarding disabled in user configuration file."); | 1465 | debug("X11 forwarding disabled in user configuration file."); |
1462 | return 0; | 1466 | return 0; |
1463 | } | 1467 | } |
@@ -1788,6 +1792,7 @@ do_authenticated2(void) | |||
1788 | * authentication. | 1792 | * authentication. |
1789 | */ | 1793 | */ |
1790 | alarm(0); | 1794 | alarm(0); |
1795 | close(startup_pipe); | ||
1791 | server_loop2(); | 1796 | server_loop2(); |
1792 | if (xauthfile) | 1797 | if (xauthfile) |
1793 | xauthfile_cleanup_proc(NULL); | 1798 | xauthfile_cleanup_proc(NULL); |