diff options
author | 2015-10-18 17:20:49 +0000 | |
---|---|---|
committer | 2015-10-18 17:20:49 +0000 | |
commit | 8a2863cb10e06c1b51c171f362f68bd908b02341 (patch) | |
tree | 09a3c330fa9c3a05707a04e53d555b76561086fa | |
parent | Do not warn for sort -o if we can't chown the output temporary file (diff) | |
download | wireguard-openbsd-8a2863cb10e06c1b51c171f362f68bd908b02341.tar.xz wireguard-openbsd-8a2863cb10e06c1b51c171f362f68bd908b02341.zip |
pledge+=flock, for /var/run/ypbind.lock. ok semarie@
-rw-r--r-- | usr.bin/ypcat/ypcat.c | 4 |
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; |