]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
- djm@cvs.openbsd.org 2011/12/04 23:16:12
authorDamien Miller <djm@mindrot.org>
Wed, 20 Jun 2012 11:46:57 +0000 (21:46 +1000)
committerDamien Miller <djm@mindrot.org>
Wed, 20 Jun 2012 11:46:57 +0000 (21:46 +1000)
     [mux.c]
     revert:

     > revision 1.32
     > date: 2011/12/02 00:41:56;  author: djm;  state: Exp;  lines: +4 -1
     > fix bz#1948: ssh -f doesn't fork for multiplexed connection.
     > ok dtucker@

     it interacts badly with ControlPersist

ChangeLog
mux.c

index 67daa54854b45024d039ce5256e391b61e6b4621..76c6e920f5d0df8ff818063fc45d5e2ee2651cc9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,7 +4,14 @@
      [mux.c]
      fix bz#1948: ssh -f doesn't fork for multiplexed connection.
      ok dtucker@
-
+   - djm@cvs.openbsd.org 2011/12/04 23:16:12
+     [mux.c]
+     revert:
+     > revision 1.32
+     > date: 2011/12/02 00:41:56;  author: djm;  state: Exp;  lines: +4 -1
+     > fix bz#1948: ssh -f doesn't fork for multiplexed connection.
+     > ok dtucker@
+     it interacts badly with ControlPersist
 
 20120519
  - (dtucker) [configure.ac] bz#2010: fix non-portable shell construct.  Patch
diff --git a/mux.c b/mux.c
index 35108ef8bd05763ac14a434a4899ba09386fed46..30b4f6f93d9890d6ce33c840afeed230fa279cfa 100644 (file)
--- a/mux.c
+++ b/mux.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mux.c,v 1.32 2011/12/02 00:41:56 djm Exp $ */
+/* $OpenBSD: mux.c,v 1.33 2011/12/04 23:16:12 djm Exp $ */
 /*
  * Copyright (c) 2002-2008 Damien Miller <djm@openbsd.org>
  *
@@ -95,7 +95,6 @@ extern Buffer command;
 extern volatile sig_atomic_t quit_pending;
 extern char *stdio_forward_host;
 extern int stdio_forward_port;
-extern int fork_after_authentication_flag;
 
 /* Context for session open confirmation callback */
 struct mux_session_confirm_ctx {
@@ -1801,8 +1800,6 @@ mux_client_request_session(int fd)
        if (tty_flag)
                enter_raw_mode(options.request_tty == REQUEST_TTY_FORCE);
 
-       if (fork_after_authentication_flag)
-               daemon(1, 1);
        /*
         * Stick around until the controlee closes the client_fd.
         * Before it does, it is expected to write an exit message.