artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
19b2d0a
)
tame "stdio rpath wpath cpath" handles all the cases of opening files
author
deraadt
<deraadt@openbsd.org>
Wed, 7 Oct 2015 06:33:31 +0000
(06:33 +0000)
committer
deraadt
<deraadt@openbsd.org>
Wed, 7 Oct 2015 06:33:31 +0000
(06:33 +0000)
usr.bin/ctags/ctags.c
patch
|
blob
|
history
diff --git
a/usr.bin/ctags/ctags.c
b/usr.bin/ctags/ctags.c
index
1747305
..
68d9f2f
100644
(file)
--- a/
usr.bin/ctags/ctags.c
+++ b/
usr.bin/ctags/ctags.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: ctags.c,v 1.1
6 2015/08/22 04:23:07 semarie
Exp $ */
+/* $OpenBSD: ctags.c,v 1.1
7 2015/10/07 06:33:31 deraadt
Exp $ */
/* $NetBSD: ctags.c,v 1.4 1995/09/02 05:57:23 jtc Exp $ */
/*
@@
-77,6
+77,9
@@
main(int argc, char *argv[])
int step; /* step through args */
int ch; /* getopts char */
+ if (tame("stdio rpath wpath cpath", NULL) == -1)
+ err(1, "tame");
+
aflag = uflag = NO;
while ((ch = getopt(argc, argv, "BFadf:tuwvx")) != -1)
switch(ch) {