Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/db/db whitelist O_CLOEXEC flag, should fix lastlogi...
details: https://anonhg.NetBSD.org/src/rev/041e7455d004
branches: trunk
changeset: 335035:041e7455d004
user: christos <christos%NetBSD.org@localhost>
date: Mon Dec 22 17:01:42 2014 +0000
description:
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 891febee49f2 -r 041e7455d004 lib/libc/db/db/db.c
--- a/lib/libc/db/db/db.c Mon Dec 22 15:24:14 2014 +0000
+++ b/lib/libc/db/db/db.c Mon Dec 22 17:01:42 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: db.c,v 1.16 2008/09/11 12:58:00 joerg Exp $ */
+/* $NetBSD: db.c,v 1.17 2014/12/22 17:01:42 christos 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.17 2014/12/22 17:01:42 christos 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