summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2015-10-18 17:20:49 +0000
committermiod <miod@openbsd.org>2015-10-18 17:20:49 +0000
commit8a2863cb10e06c1b51c171f362f68bd908b02341 (patch)
tree09a3c330fa9c3a05707a04e53d555b76561086fa
parentDo not warn for sort -o if we can't chown the output temporary file (diff)
downloadwireguard-openbsd-8a2863cb10e06c1b51c171f362f68bd908b02341.tar.xz
wireguard-openbsd-8a2863cb10e06c1b51c171f362f68bd908b02341.zip
pledge+=flock, for /var/run/ypbind.lock. ok semarie@
-rw-r--r--usr.bin/ypcat/ypcat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ypcat/ypcat.c b/usr.bin/ypcat/ypcat.c
index a87f4361f49..2198542dfd3 100644
--- a/usr.bin/ypcat/ypcat.c
+++ b/usr.bin/ypcat/ypcat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ypcat.c,v 1.17 2015/10/10 21:08:09 deraadt Exp $ */
+/* $OpenBSD: ypcat.c,v 1.18 2015/10/18 17:20:49 miod Exp $ */
/*
* Copyright (c) 1992, 1993, 1996 Theo de Raadt <deraadt@theos.com>
@@ -88,7 +88,7 @@ main(int argc, char *argv[])
extern int optind;
int notrans, c, r, i;
- if (pledge("stdio rpath inet", NULL) == -1)
+ if (pledge("stdio rpath inet flock", NULL) == -1)
perror("pledge");
notrans = key = 0;