git: 1e8f26125fe8 - stable/14 - libc: set close-on-exec for temp socket used to detect IPv6 support
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 31 May 2025 02:37:54 UTC
The branch stable/14 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=1e8f26125fe8442ebf499b2bb25d78d779ddb574 commit 1e8f26125fe8442ebf499b2bb25d78d779ddb574 Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2025-05-24 11:27:29 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2025-05-31 02:37:35 +0000 libc: set close-on-exec for temp socket used to detect IPv6 support (cherry picked from commit eba403923626f2ecfd724e131da992a7c3cb7240) --- lib/libc/gen/sysconf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libc/gen/sysconf.c b/lib/libc/gen/sysconf.c index 3024cae47c85..4b43cb48840c 100644 --- a/lib/libc/gen/sysconf.c +++ b/lib/libc/gen/sysconf.c @@ -569,7 +569,7 @@ yesno: case _SC_IPV6: #if _POSIX_IPV6 == 0 sverrno = errno; - value = _socket(PF_INET6, SOCK_DGRAM, 0); + value = _socket(PF_INET6, SOCK_CLOEXEC | SOCK_DGRAM, 0); errno = sverrno; if (value >= 0) { _close(value);