Date: Sat, 7 Jan 2017 09:41:18 +0000 (UTC) From: Ngie Cooper <ngie@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r311628 - stable/10/contrib/netbsd-tests/lib/libc/gen Message-ID: <201701070941.v079fIXd006492@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ngie Date: Sat Jan 7 09:41:18 2017 New Revision: 311628 URL: https://svnweb.freebsd.org/changeset/base/311628 Log: MFC r311235: ttyname_err: close fd if it was opened successfully CID: 978292 Modified: stable/10/contrib/netbsd-tests/lib/libc/gen/t_ttyname.c Directory Properties: stable/10/ (props changed) Modified: stable/10/contrib/netbsd-tests/lib/libc/gen/t_ttyname.c ============================================================================== --- stable/10/contrib/netbsd-tests/lib/libc/gen/t_ttyname.c Sat Jan 7 09:39:15 2017 (r311627) +++ stable/10/contrib/netbsd-tests/lib/libc/gen/t_ttyname.c Sat Jan 7 09:41:18 2017 (r311628) @@ -78,6 +78,9 @@ ATF_TC_BODY(ttyname_err, tc) ATF_REQUIRE(ttyname(fd) == NULL); ATF_REQUIRE(errno == ENOTTY); +#ifdef __FreeBSD__ + (void)close(fd); +#endif } }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201701070941.v079fIXd006492>