artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4de5c56
)
pledge "stdio proc exec". relies on two recent kernel fixes.
author
deraadt
<deraadt@openbsd.org>
Sat, 10 Oct 2015 14:49:23 +0000
(14:49 +0000)
committer
deraadt
<deraadt@openbsd.org>
Sat, 10 Oct 2015 14:49:23 +0000
(14:49 +0000)
usr.bin/time/time.c
patch
|
blob
|
history
diff --git
a/usr.bin/time/time.c
b/usr.bin/time/time.c
index
e18653d
..
d3b4659
100644
(file)
--- a/
usr.bin/time/time.c
+++ b/
usr.bin/time/time.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: time.c,v 1.2
0 2015/01/16 06:40:1
3 deraadt Exp $ */
+/* $OpenBSD: time.c,v 1.2
1 2015/10/10 14:49:2
3 deraadt Exp $ */
/* $NetBSD: time.c,v 1.7 1995/06/27 00:34:00 jtc Exp $ */
/*
@@
-56,6
+56,8
@@
main(int argc, char *argv[])
struct rusage ru;
int exitonsig = 0;
+ if (pledge("stdio proc exec", NULL) == -1)
+ err(1, "pledge");
while ((ch = getopt(argc, argv, "lp")) != -1) {
switch(ch) {