diff options
author | millert <millert@openbsd.org> | 2015-10-16 13:37:43 +0000 |
---|---|---|
committer | millert <millert@openbsd.org> | 2015-10-16 13:37:43 +0000 |
commit | cbbcd319fcd2cd7f102ec0f7c551a3c482f8d7d8 (patch) | |
tree | 8b52edbb1256ec475192a65364a2a4fd87a370a9 /usr.sbin/kvm_mkdb | |
parent | actually include the prerequisite dependency for BIO instead of doing nastyness (diff) | |
download | wireguard-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/kvm_mkdb')
-rw-r--r-- | usr.sbin/kvm_mkdb/kvm_mkdb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/kvm_mkdb/kvm_mkdb.c b/usr.sbin/kvm_mkdb/kvm_mkdb.c index eff6a7b44ab..fa4c20393d5 100644 --- a/usr.sbin/kvm_mkdb/kvm_mkdb.c +++ b/usr.sbin/kvm_mkdb/kvm_mkdb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kvm_mkdb.c,v 1.23 2015/10/13 15:55:44 deraadt Exp $ */ +/* $OpenBSD: kvm_mkdb.c,v 1.24 2015/10/16 13:37:44 millert Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -170,7 +170,7 @@ kvm_mkdb(int fd, const char *dbdir, char *nlistpath, char *nlistname, } /* rename() later */ - if (pledge("stdio rpath wpath cpath", NULL) == -1) + if (pledge("stdio rpath wpath cpath flock", NULL) == -1) err(1, "pledge"); if (create_knlist(nlistpath, fd, db) != 0) { |