svn commit: r311629 - stable/11/contrib/netbsd-tests/lib/libc/gen
Ngie Cooper
ngie at FreeBSD.org
Sat Jan 7 09:41:23 UTC 2017
Author: ngie
Date: Sat Jan 7 09:41:21 2017
New Revision: 311629
URL: https://svnweb.freebsd.org/changeset/base/311629
Log:
MFC r311235:
ttyname_err: close fd if it was opened successfully
CID: 978292
Modified:
stable/11/contrib/netbsd-tests/lib/libc/gen/t_ttyname.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/contrib/netbsd-tests/lib/libc/gen/t_ttyname.c
==============================================================================
--- stable/11/contrib/netbsd-tests/lib/libc/gen/t_ttyname.c Sat Jan 7 09:41:18 2017 (r311628)
+++ stable/11/contrib/netbsd-tests/lib/libc/gen/t_ttyname.c Sat Jan 7 09:41:21 2017 (r311629)
@@ -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
}
}
More information about the svn-src-stable-11
mailing list