commit | 8f750ccfc07acb8aa98be5a5dd935033a6468cfd | [log] [tgz] |
---|---|---|
author | Darren Tucker <dtucker@zip.com.au> | Mon Sep 12 14:43:58 2016 +1000 |
committer | Darren Tucker <dtucker@zip.com.au> | Mon Sep 12 14:43:58 2016 +1000 |
tree | f7f3c3b173a1556e1cf8e4dcc7f9b1542b2de5f7 | |
parent | 7050896e7395866278c19c2ff080c26152619d1d [diff] [blame] |
Remove no-op brackets to resync with upstream.
diff --git a/sshpty.c b/sshpty.c index 15da8c6..b8457d9 100644 --- a/sshpty.c +++ b/sshpty.c
@@ -155,11 +155,11 @@ 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)