artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e5ed115
)
Use "getpw" rather than "flock", per deraadt@'s suggestion.
author
miod
<miod@openbsd.org>
Sun, 18 Oct 2015 17:53:51 +0000
(17:53 +0000)
committer
miod
<miod@openbsd.org>
Sun, 18 Oct 2015 17:53:51 +0000
(17:53 +0000)
usr.bin/ypcat/ypcat.c
patch
|
blob
|
history
diff --git
a/usr.bin/ypcat/ypcat.c
b/usr.bin/ypcat/ypcat.c
index
2198542
..
f0f981c
100644
(file)
--- a/
usr.bin/ypcat/ypcat.c
+++ b/
usr.bin/ypcat/ypcat.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: ypcat.c,v 1.1
8 2015/10/18 17:20:49
miod Exp $ */
+/* $OpenBSD: ypcat.c,v 1.1
9 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;