Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-7]: src/lib/libc/db/db Pull up following revision(s) (requested b...



details:   https://anonhg.NetBSD.org/src/rev/181260edadde
branches:  netbsd-7
changeset: 799353:181260edadde
user:      snj <snj%NetBSD.org@localhost>
date:      Tue May 19 05:11:58 2015 +0000

description:
Pull up following revision(s) (requested by christos in ticket #785):
        lib/libc/db/db/db.c: revision 1.17
whitelist O_CLOEXEC flag, should fix lastlogin issue.

diffstat:

 lib/libc/db/db/db.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 3dd2e9d9666f -r 181260edadde lib/libc/db/db/db.c
--- a/lib/libc/db/db/db.c       Tue May 19 05:09:02 2015 +0000
+++ b/lib/libc/db/db/db.c       Tue May 19 05:11:58 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: db.c,v 1.16 2008/09/11 12:58:00 joerg Exp $    */
+/*     $NetBSD: db.c,v 1.16.40.1 2015/05/19 05:11:58 snj Exp $ */
 
 /*-
  * Copyright (c) 1991, 1993
@@ -34,7 +34,7 @@
 #endif
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: db.c,v 1.16 2008/09/11 12:58:00 joerg Exp $");
+__RCSID("$NetBSD: db.c,v 1.16.40.1 2015/05/19 05:11:58 snj Exp $");
 
 #include "namespace.h"
 #include <sys/types.h>
@@ -59,7 +59,7 @@
 #define        DB_FLAGS        (DB_LOCK | DB_SHMEM | DB_TXN)
 #define        USE_OPEN_FLAGS                                                  \
        (O_CREAT | O_EXCL | O_EXLOCK | O_NONBLOCK | O_RDONLY |          \
-        O_RDWR | O_SHLOCK | O_TRUNC)
+        O_RDWR | O_SHLOCK | O_TRUNC | O_CLOEXEC)
 
        if ((flags & ~(USE_OPEN_FLAGS | DB_FLAGS)) == 0)
                switch (type) {



Home | Main Index | Thread Index | Old Index