From 7de98c391c5b32d1e2e6eff9dd2c3325b7e5a160 Mon Sep 17 00:00:00 2001 From: djm Date: Sun, 26 Mar 2006 02:59:59 +0000 Subject: [PATCH] - deraadt@cvs.openbsd.org 2006/03/19 18:59:30 [ssh.c] spacing --- ChangeLog | 3 +++ ssh.c | 28 ++++++++++++++-------------- 2 files changed, 17 insertions(+), 14 deletions(-) diff --git a/ChangeLog b/ChangeLog index 067eac1c..7f21eadc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -49,6 +49,9 @@ - deraadt@cvs.openbsd.org 2006/03/19 18:59:49 [ssh-keyscan.c] please lint + - deraadt@cvs.openbsd.org 2006/03/19 18:59:30 + [ssh.c] + spacing 20060325 - OpenBSD CVS Sync diff --git a/ssh.c b/ssh.c index 9402491e..3615d1c4 100644 --- a/ssh.c +++ b/ssh.c @@ -1305,23 +1305,23 @@ control_client(const char *path) strerror(errno)); } if (errno == ENOENT) - debug("Control socket \"%.100s\" does not exist", path); + debug("Control socket \"%.100s\" does not exist", path); else { - error("Control socket connect(%.100s): %s", path, + error("Control socket connect(%.100s): %s", path, strerror(errno)); } - close(sock); - return; - } - - if (stdin_null_flag) { - if ((fd = open(_PATH_DEVNULL, O_RDONLY)) == -1) - fatal("open(/dev/null): %s", strerror(errno)); - if (dup2(fd, STDIN_FILENO) == -1) - fatal("dup2: %s", strerror(errno)); - if (fd > STDERR_FILENO) - close(fd); - } + close(sock); + return; + } + + if (stdin_null_flag) { + if ((fd = open(_PATH_DEVNULL, O_RDONLY)) == -1) + fatal("open(/dev/null): %s", strerror(errno)); + if (dup2(fd, STDIN_FILENO) == -1) + fatal("dup2: %s", strerror(errno)); + if (fd > STDERR_FILENO) + close(fd); + } term = getenv("TERM"); -- 2.45.2