Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/resolv F_DUPFD* needs an argument (minfd) found by ...
details: https://anonhg.NetBSD.org/src/rev/c12ed3123fb8
branches: trunk
changeset: 353088:c12ed3123fb8
user: christos <christos%NetBSD.org@localhost>
date: Wed Apr 19 22:21:07 2017 +0000
description:
F_DUPFD* needs an argument (minfd) found by jmcneill
diffstat:
lib/libc/resolv/res_init.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 37c7af79a538 -r c12ed3123fb8 lib/libc/resolv/res_init.c
--- a/lib/libc/resolv/res_init.c Wed Apr 19 21:48:58 2017 +0000
+++ b/lib/libc/resolv/res_init.c Wed Apr 19 22:21:07 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: res_init.c,v 1.30 2015/02/24 17:56:20 christos Exp $ */
+/* $NetBSD: res_init.c,v 1.31 2017/04/19 22:21:07 christos Exp $ */
/*
* Copyright (c) 1985, 1989, 1993
@@ -72,7 +72,7 @@
static const char sccsid[] = "@(#)res_init.c 8.1 (Berkeley) 6/7/93";
static const char rcsid[] = "Id: res_init.c,v 1.26 2008/12/11 09:59:00 marka Exp";
#else
-__RCSID("$NetBSD: res_init.c,v 1.30 2015/02/24 17:56:20 christos Exp $");
+__RCSID("$NetBSD: res_init.c,v 1.31 2017/04/19 22:21:07 christos Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -495,7 +495,7 @@
#ifdef RESOLVSORT
statp->nsort = nsort;
#endif
- statp->_u._ext.ext->resfd = fcntl(fileno(fp), F_DUPFD_CLOEXEC);
+ statp->_u._ext.ext->resfd = fcntl(fileno(fp), F_DUPFD_CLOEXEC, 0);
(void) fclose(fp);
if (fstat(statp->_u._ext.ext->resfd, &st) != -1)
__res_conf_time = statp->_u._ext.ext->res_conf_time =
Home |
Main Index |
Thread Index |
Old Index