summaryrefslogtreecommitdiffstats
path: root/usr.sbin/dev_mkdb/dev_mkdb.c
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2015-10-16 13:37:43 +0000
committermillert <millert@openbsd.org>2015-10-16 13:37:43 +0000
commitcbbcd319fcd2cd7f102ec0f7c551a3c482f8d7d8 (patch)
tree8b52edbb1256ec475192a65364a2a4fd87a370a9 /usr.sbin/dev_mkdb/dev_mkdb.c
parentactually include the prerequisite dependency for BIO instead of doing nastyness (diff)
downloadwireguard-openbsd-cbbcd319fcd2cd7f102ec0f7c551a3c482f8d7d8.tar.xz
wireguard-openbsd-cbbcd319fcd2cd7f102ec0f7c551a3c482f8d7d8.zip
Implement real "flock" request and add it to userland programs that
use pledge and file locking. OK deraadt@
Diffstat (limited to 'usr.sbin/dev_mkdb/dev_mkdb.c')
-rw-r--r--usr.sbin/dev_mkdb/dev_mkdb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/dev_mkdb/dev_mkdb.c b/usr.sbin/dev_mkdb/dev_mkdb.c
index 83aaf7429ec..57506622e07 100644
--- a/usr.sbin/dev_mkdb/dev_mkdb.c
+++ b/usr.sbin/dev_mkdb/dev_mkdb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dev_mkdb.c,v 1.14 2015/10/12 16:01:53 deraadt Exp $ */
+/* $OpenBSD: dev_mkdb.c,v 1.15 2015/10/16 13:37:44 millert Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -61,7 +61,7 @@ main(int argc, char *argv[])
u_char buf[MAXNAMLEN + 1];
char dbtmp[PATH_MAX], dbname[PATH_MAX];
- if (pledge("stdio rpath wpath cpath", NULL) == -1)
+ if (pledge("stdio rpath wpath cpath flock", NULL) == -1)
err(1, "pledge");
while ((ch = getopt(argc, argv, "")) != -1)