summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2002-02-09 17:40:25 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2002-02-09 17:40:25 +0000
commit26495981e3ae8b5b6a91399d1bc7f28c3e8737fc (patch)
tree4b7b4850d4f7c8e600d4f5a8d6d4f6be931f7316 /lib
parent3444dcf946b355385f62082fb180bc02fae69124 (diff)
Allow O_SYNC and O_NOFOLLOW flags in dbopen()
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/db/db/db.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/db/db/db.c b/lib/libc/db/db/db.c
index 59a8604aef8..de0d68179a7 100644
--- a/lib/libc/db/db/db.c
+++ b/lib/libc/db/db/db.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db.c,v 1.3 1999/02/15 05:11:23 millert Exp $ */
+/* $OpenBSD: db.c,v 1.4 2002/02/09 17:40:24 millert Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)db.c 8.4 (Berkeley) 2/21/94";
#else
-static char rcsid[] = "$OpenBSD: db.c,v 1.3 1999/02/15 05:11:23 millert Exp $";
+static char rcsid[] = "$OpenBSD: db.c,v 1.4 2002/02/09 17:40:24 millert Exp $";
#endif
#endif /* LIBC_SCCS and not lint */
@@ -60,8 +60,8 @@ dbopen(fname, flags, mode, type, openinfo)
#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_CREAT | O_EXCL | O_EXLOCK | O_NOFOLLOW | O_NONBLOCK | \
+ O_RDONLY | O_RDWR | O_SHLOCK | O_SYNC | O_TRUNC)
if ((flags & ~(USE_OPEN_FLAGS | DB_FLAGS)) == 0)
switch (type) {