diff options
Diffstat (limited to 'ssh.c')
-rw-r--r-- | ssh.c | 28 |
1 files changed, 14 insertions, 14 deletions
@@ -1305,23 +1305,23 @@ control_client(const char *path) | |||
1305 | strerror(errno)); | 1305 | strerror(errno)); |
1306 | } | 1306 | } |
1307 | if (errno == ENOENT) | 1307 | if (errno == ENOENT) |
1308 | debug("Control socket \"%.100s\" does not exist", path); | 1308 | debug("Control socket \"%.100s\" does not exist", path); |
1309 | else { | 1309 | else { |
1310 | error("Control socket connect(%.100s): %s", path, | 1310 | error("Control socket connect(%.100s): %s", path, |
1311 | strerror(errno)); | 1311 | strerror(errno)); |
1312 | } | 1312 | } |
1313 | close(sock); | 1313 | close(sock); |
1314 | return; | 1314 | return; |
1315 | } | 1315 | } |
1316 | 1316 | ||
1317 | if (stdin_null_flag) { | 1317 | if (stdin_null_flag) { |
1318 | if ((fd = open(_PATH_DEVNULL, O_RDONLY)) == -1) | 1318 | if ((fd = open(_PATH_DEVNULL, O_RDONLY)) == -1) |
1319 | fatal("open(/dev/null): %s", strerror(errno)); | 1319 | fatal("open(/dev/null): %s", strerror(errno)); |
1320 | if (dup2(fd, STDIN_FILENO) == -1) | 1320 | if (dup2(fd, STDIN_FILENO) == -1) |
1321 | fatal("dup2: %s", strerror(errno)); | 1321 | fatal("dup2: %s", strerror(errno)); |
1322 | if (fd > STDERR_FILENO) | 1322 | if (fd > STDERR_FILENO) |
1323 | close(fd); | 1323 | close(fd); |
1324 | } | 1324 | } |
1325 | 1325 | ||
1326 | term = getenv("TERM"); | 1326 | term = getenv("TERM"); |
1327 | 1327 | ||