artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23460c7
)
tame "stdio rpath", for the open with O_RDONLY.
author
deraadt
<deraadt@openbsd.org>
Wed, 7 Oct 2015 14:13:23 +0000
(14:13 +0000)
committer
deraadt
<deraadt@openbsd.org>
Wed, 7 Oct 2015 14:13:23 +0000
(14:13 +0000)
ok semarie
usr.bin/look/look.c
patch
|
blob
|
history
diff --git
a/usr.bin/look/look.c
b/usr.bin/look/look.c
index
b3b7db9
..
86c66fe
100644
(file)
--- a/
usr.bin/look/look.c
+++ b/
usr.bin/look/look.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: look.c,v 1.1
6 2015/02/06 23:21:59 miller
t Exp $ */
+/* $OpenBSD: look.c,v 1.1
7 2015/10/07 14:13:23 deraad
t Exp $ */
/* $NetBSD: look.c,v 1.7 1995/08/31 22:41:02 jtc Exp $ */
/*-
@@
-88,6
+88,9
@@
main(int argc, char *argv[])
int ch, fd, termchar;
char *back, *file, *front, *string, *p;
+ if (tame("stdio rpath", NULL) == -1)
+ err(1, "tame");
+
file = _PATH_WORDS;
termchar = '\0';
while ((ch = getopt(argc, argv, "dft:")) != -1)