From: miod Date: Sun, 18 Oct 2015 17:53:51 +0000 (+0000) Subject: Use "getpw" rather than "flock", per deraadt@'s suggestion. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=c3b14b2d48e1c3d6f4e1f97232593775ab416133;p=openbsd Use "getpw" rather than "flock", per deraadt@'s suggestion. --- diff --git a/usr.bin/ypcat/ypcat.c b/usr.bin/ypcat/ypcat.c index 2198542dfd3..f0f981ca2e2 100644 --- a/usr.bin/ypcat/ypcat.c +++ b/usr.bin/ypcat/ypcat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ypcat.c,v 1.18 2015/10/18 17:20:49 miod Exp $ */ +/* $OpenBSD: ypcat.c,v 1.19 2015/10/18 17:53:51 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 flock", NULL) == -1) + if (pledge("stdio rpath inet getpw", NULL) == -1) perror("pledge"); notrans = key = 0;