From: Darren Tucker Date: Mon, 12 Sep 2016 04:43:58 +0000 (+1000) Subject: Remove no-op brackets to resync with upstream. X-Git-Tag: V_7_4_P1~115 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f750ccfc07acb8aa98be5a5dd935033a6468cfd;p=thirdparty%2Fopenssh-portable.git Remove no-op brackets to resync with upstream. --- diff --git a/sshpty.c b/sshpty.c index 15da8c649..b8457d913 100644 --- a/sshpty.c +++ b/sshpty.c @@ -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)