artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b154e2c
)
biff pledges to only do "stdio rpath fattr tty". (very small program..
author
deraadt
<deraadt@openbsd.org>
Mon, 12 Oct 2015 05:59:43 +0000
(
05:59
+0000)
committer
deraadt
<deraadt@openbsd.org>
Mon, 12 Oct 2015 05:59:43 +0000
(
05:59
+0000)
the actual order of use is tty, rpath, stdio or fattr)
usr.bin/biff/biff.c
patch
|
blob
|
history
diff --git
a/usr.bin/biff/biff.c
b/usr.bin/biff/biff.c
index
1af7fd2
..
6f0e07d
100644
(file)
--- a/
usr.bin/biff/biff.c
+++ b/
usr.bin/biff/biff.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: biff.c,v 1.1
1 2009/10/27 23:59:36
deraadt Exp $ */
+/* $OpenBSD: biff.c,v 1.1
2 2015/10/12 05:59:43
deraadt Exp $ */
/* $NetBSD: biff.c,v 1.3 1995/03/26 02:34:22 glass Exp $ */
/*
@@
-49,6
+49,8
@@
main(int argc, char *argv[])
int ch;
char *name;
+ if (pledge("stdio rpath fattr tty", NULL) == -1)
+ err(1, "pledge");
while ((ch = getopt(argc, argv, "")) != -1)
switch(ch) {