summaryrefslogtreecommitdiff
path: root/ssh.c
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2018-02-13 03:36:56 +0000
committerDamien Miller <djm@mindrot.org>2018-02-13 14:38:05 +1100
commitb8bbff3b3fc823bf80c5ab226c94f13cb887d5b1 (patch)
tree47cdabf2c4a6abfe89d017c043cce3cceb113311 /ssh.c
parent05046d907c211cb9b4cd21b8eff9e7a46cd6c5ab (diff)
upstream: remove space before tab
OpenBSD-Commit-ID: 674edd214d0a7332dd4623c9cf8117301b012890
Diffstat (limited to 'ssh.c')
-rw-r--r--ssh.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/ssh.c b/ssh.c
index c0bdd38bc..2d8f6506b 100644
--- a/ssh.c
+++ b/ssh.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssh.c,v 1.472 2018/02/11 21:16:56 dtucker Exp $ */ 1/* $OpenBSD: ssh.c,v 1.473 2018/02/13 03:36:56 djm Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -1555,29 +1555,29 @@ control_persist_detach(void)
1555 1555
1556 debug("%s: backgrounding master process", __func__); 1556 debug("%s: backgrounding master process", __func__);
1557 1557
1558 /* 1558 /*
1559 * master (current process) into the background, and make the 1559 * master (current process) into the background, and make the
1560 * foreground process a client of the backgrounded master. 1560 * foreground process a client of the backgrounded master.
1561 */ 1561 */
1562 switch ((pid = fork())) { 1562 switch ((pid = fork())) {
1563 case -1: 1563 case -1:
1564 fatal("%s: fork: %s", __func__, strerror(errno)); 1564 fatal("%s: fork: %s", __func__, strerror(errno));
1565 case 0: 1565 case 0:
1566 /* Child: master process continues mainloop */ 1566 /* Child: master process continues mainloop */
1567 break; 1567 break;
1568 default: 1568 default:
1569 /* Parent: set up mux slave to connect to backgrounded master */ 1569 /* Parent: set up mux slave to connect to backgrounded master */
1570 debug2("%s: background process is %ld", __func__, (long)pid); 1570 debug2("%s: background process is %ld", __func__, (long)pid);
1571 stdin_null_flag = ostdin_null_flag; 1571 stdin_null_flag = ostdin_null_flag;
1572 options.request_tty = orequest_tty; 1572 options.request_tty = orequest_tty;
1573 tty_flag = otty_flag; 1573 tty_flag = otty_flag;
1574 close(muxserver_sock); 1574 close(muxserver_sock);
1575 muxserver_sock = -1; 1575 muxserver_sock = -1;
1576 options.control_master = SSHCTL_MASTER_NO; 1576 options.control_master = SSHCTL_MASTER_NO;
1577 muxclient(options.control_path); 1577 muxclient(options.control_path);
1578 /* muxclient() doesn't return on success. */ 1578 /* muxclient() doesn't return on success. */
1579 fatal("Failed to connect to new control master"); 1579 fatal("Failed to connect to new control master");
1580 } 1580 }
1581 if ((devnull = open(_PATH_DEVNULL, O_RDWR)) == -1) { 1581 if ((devnull = open(_PATH_DEVNULL, O_RDWR)) == -1) {
1582 error("%s: open(\"/dev/null\"): %s", __func__, 1582 error("%s: open(\"/dev/null\"): %s", __func__,
1583 strerror(errno)); 1583 strerror(errno));
@@ -1903,7 +1903,7 @@ ssh_session2(struct ssh *ssh, struct passwd *pw)
1903 if (!packet_get_mux()) 1903 if (!packet_get_mux())
1904 muxserver_listen(ssh); 1904 muxserver_listen(ssh);
1905 1905
1906 /* 1906 /*
1907 * If we are in control persist mode and have a working mux listen 1907 * If we are in control persist mode and have a working mux listen
1908 * socket, then prepare to background ourselves and have a foreground 1908 * socket, then prepare to background ourselves and have a foreground
1909 * client attach as a control slave. 1909 * client attach as a control slave.
@@ -1912,18 +1912,18 @@ ssh_session2(struct ssh *ssh, struct passwd *pw)
1912 * after the connection is fully established (in particular, 1912 * after the connection is fully established (in particular,
1913 * async rfwd replies have been received for ExitOnForwardFailure). 1913 * async rfwd replies have been received for ExitOnForwardFailure).
1914 */ 1914 */
1915 if (options.control_persist && muxserver_sock != -1) { 1915 if (options.control_persist && muxserver_sock != -1) {
1916 ostdin_null_flag = stdin_null_flag; 1916 ostdin_null_flag = stdin_null_flag;
1917 ono_shell_flag = no_shell_flag; 1917 ono_shell_flag = no_shell_flag;
1918 orequest_tty = options.request_tty; 1918 orequest_tty = options.request_tty;
1919 otty_flag = tty_flag; 1919 otty_flag = tty_flag;
1920 stdin_null_flag = 1; 1920 stdin_null_flag = 1;
1921 no_shell_flag = 1; 1921 no_shell_flag = 1;
1922 tty_flag = 0; 1922 tty_flag = 0;
1923 if (!fork_after_authentication_flag) 1923 if (!fork_after_authentication_flag)
1924 need_controlpersist_detach = 1; 1924 need_controlpersist_detach = 1;
1925 fork_after_authentication_flag = 1; 1925 fork_after_authentication_flag = 1;
1926 } 1926 }
1927 /* 1927 /*
1928 * ControlPersist mux listen socket setup failed, attempt the 1928 * ControlPersist mux listen socket setup failed, attempt the
1929 * stdio forward setup that we skipped earlier. 1929 * stdio forward setup that we skipped earlier.