From 8a2863cb10e06c1b51c171f362f68bd908b02341 Mon Sep 17 00:00:00 2001 From: miod Date: Sun, 18 Oct 2015 17:20:49 +0000 Subject: [PATCH] pledge+=flock, for /var/run/ypbind.lock. ok semarie@ --- usr.bin/ypcat/ypcat.c | 4 ++-- 1 file 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 @@ -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; -- 2.20.1