diff options
author | Darren Tucker <dtucker@zip.com.au> | 2016-09-12 06:43:58 +0200 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2016-09-12 06:43:58 +0200 |
commit | 8f750ccfc07acb8aa98be5a5dd935033a6468cfd (patch) | |
tree | f7f3c3b173a1556e1cf8e4dcc7f9b1542b2de5f7 /sshpty.c | |
parent | Resync ssh-keygen -W error message with upstream. (diff) | |
download | openssh-8f750ccfc07acb8aa98be5a5dd935033a6468cfd.tar.xz openssh-8f750ccfc07acb8aa98be5a5dd935033a6468cfd.zip |
Remove no-op brackets to resync with upstream.
Diffstat (limited to 'sshpty.c')
-rw-r--r-- | sshpty.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -155,11 +155,11 @@ pty_make_controlling_tty(int *ttyfd, const char *tty) error("SETPGRP %s",strerror(errno)); #endif /* NEED_SETPGRP */ fd = open(tty, O_RDWR); - if (fd < 0) { + if (fd < 0) error("%.100s: %.100s", tty, strerror(errno)); - } else { + else close(fd); - } + /* Verify that we now have a controlling tty. */ fd = open(_PATH_TTY, O_WRONLY); if (fd < 0) |