Date: Sun, 13 Sep 2015 17:17:53 +0000 (UTC) From: Jilles Tjoelker <jilles@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r287761 - head/lib/libc/db/recno Message-ID: <201509131717.t8DHHri1070952@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jilles Date: Sun Sep 13 17:17:52 2015 New Revision: 287761 URL: https://svnweb.freebsd.org/changeset/base/287761 Log: db/recno: Open with close-on-exec like btree and hash do. Modified: head/lib/libc/db/recno/rec_open.c Modified: head/lib/libc/db/recno/rec_open.c ============================================================================== --- head/lib/libc/db/recno/rec_open.c Sun Sep 13 16:49:41 2015 (r287760) +++ head/lib/libc/db/recno/rec_open.c Sun Sep 13 17:17:52 2015 (r287761) @@ -64,7 +64,7 @@ __rec_open(const char *fname, int flags, int rfd, sverrno; /* Open the user's file -- if this fails, we're done. */ - if (fname != NULL && (rfd = _open(fname, flags, mode)) < 0) + if (fname != NULL && (rfd = _open(fname, flags | O_CLOEXEC, mode)) < 0) return (NULL); /* Create a btree in memory (backed by disk). */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201509131717.t8DHHri1070952>