diff options
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | mux.c | 5 |
2 files changed, 12 insertions, 1 deletions
@@ -1,3 +1,11 @@ | |||
1 | 20120620 | ||
2 | - (djm) OpenBSD CVS Sync | ||
3 | - djm@cvs.openbsd.org 2011/12/02 00:41:56 | ||
4 | [mux.c] | ||
5 | fix bz#1948: ssh -f doesn't fork for multiplexed connection. | ||
6 | ok dtucker@ | ||
7 | |||
8 | |||
1 | 20120519 | 9 | 20120519 |
2 | - (dtucker) [configure.ac] bz#2010: fix non-portable shell construct. Patch | 10 | - (dtucker) [configure.ac] bz#2010: fix non-portable shell construct. Patch |
3 | from cjwatson at debian org. | 11 | from cjwatson at debian org. |
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: mux.c,v 1.34 2012/01/07 21:11:36 djm Exp $ */ | 1 | /* $OpenBSD: mux.c,v 1.32 2011/12/02 00:41:56 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2002-2008 Damien Miller <djm@openbsd.org> | 3 | * Copyright (c) 2002-2008 Damien Miller <djm@openbsd.org> |
4 | * | 4 | * |
@@ -95,6 +95,7 @@ extern Buffer command; | |||
95 | extern volatile sig_atomic_t quit_pending; | 95 | extern volatile sig_atomic_t quit_pending; |
96 | extern char *stdio_forward_host; | 96 | extern char *stdio_forward_host; |
97 | extern int stdio_forward_port; | 97 | extern int stdio_forward_port; |
98 | extern int fork_after_authentication_flag; | ||
98 | 99 | ||
99 | /* Context for session open confirmation callback */ | 100 | /* Context for session open confirmation callback */ |
100 | struct mux_session_confirm_ctx { | 101 | struct mux_session_confirm_ctx { |
@@ -1800,6 +1801,8 @@ mux_client_request_session(int fd) | |||
1800 | if (tty_flag) | 1801 | if (tty_flag) |
1801 | enter_raw_mode(options.request_tty == REQUEST_TTY_FORCE); | 1802 | enter_raw_mode(options.request_tty == REQUEST_TTY_FORCE); |
1802 | 1803 | ||
1804 | if (fork_after_authentication_flag) | ||
1805 | daemon(1, 1); | ||
1803 | /* | 1806 | /* |
1804 | * Stick around until the controlee closes the client_fd. | 1807 | * Stick around until the controlee closes the client_fd. |
1805 | * Before it does, it is expected to write an exit message. | 1808 | * Before it does, it is expected to write an exit message. |