]> andersk Git - openssh.git/blobdiff - ssh.c
- deraadt@cvs.openbsd.org 2006/03/19 18:59:30
[openssh.git] / ssh.c
diff --git a/ssh.c b/ssh.c
index 9402491e3d1c93ddbdcaf1b0b7283d9f4b839b9a..3615d1c403d3d5ced1f9738c80a505439d88179c 100644 (file)
--- 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");
 
This page took 0.033507 seconds and 4 git commands to generate.