From: miod Date: Sun, 18 Oct 2015 17:20:49 +0000 (+0000) Subject: pledge+=flock, for /var/run/ypbind.lock. ok semarie@ X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=8a2863cb10e06c1b51c171f362f68bd908b02341;p=openbsd pledge+=flock, for /var/run/ypbind.lock. ok semarie@ --- 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;