diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2015-10-18 17:53:52 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2015-10-18 17:53:52 +0000 |
commit | ad414ae7d52a58072ec30b1bf7e2506384356499 (patch) | |
tree | 80dc5543876be67256fd4b1c72e99b6ada16ddd7 /usr.bin/ypcat/ypcat.c | |
parent | 6ed7bc30d30876ecdff07c2a25bc86a417c45680 (diff) |
Use "getpw" rather than "flock", per deraadt@'s suggestion.
Diffstat (limited to 'usr.bin/ypcat/ypcat.c')
-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 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 <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 flock", NULL) == -1) + if (pledge("stdio rpath inet getpw", NULL) == -1) perror("pledge"); notrans = key = 0; |