Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/lib/libc/resolv/res_init.c,v rcsdiff: /ftp/cvs/cvsroot/src/lib/libc/resolv/res_init.c,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.30 retrieving revision 1.30.2.1 diff -u -p -r1.30 -r1.30.2.1 --- src/lib/libc/resolv/res_init.c 2015/02/24 17:56:20 1.30 +++ src/lib/libc/resolv/res_init.c 2017/04/26 02:52:54 1.30.2.1 @@ -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.30.2.1 2017/04/26 02:52:54 pgoyette 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.30.2.1 2017/04/26 02:52:54 pgoyette Exp $"); #endif #endif /* LIBC_SCCS and not lint */ @@ -495,7 +495,7 @@ __res_vinit(res_state statp, int preinit #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 =