From c3b14b2d48e1c3d6f4e1f97232593775ab416133 Mon Sep 17 00:00:00 2001 From: miod Date: Sun, 18 Oct 2015 17:53:51 +0000 Subject: [PATCH] Use "getpw" rather than "flock", per deraadt@'s suggestion. --- 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 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; -- 2.20.1