diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-10-07 06:33:32 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-10-07 06:33:32 +0000 |
commit | 2c67b9cb8258ceeaa9f7bfa4fe5969fcb25bc55e (patch) | |
tree | 775eeb65cdb9dc6fa46d147a040591546d545909 /usr.bin/ctags | |
parent | bfe057f9dab23e4ffe4f787cab40e0f1cf12c40a (diff) |
tame "stdio rpath wpath cpath" handles all the cases of opening files
Diffstat (limited to 'usr.bin/ctags')
-rw-r--r-- | usr.bin/ctags/ctags.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/ctags/ctags.c b/usr.bin/ctags/ctags.c index 17473055871..68d9f2f9014 100644 --- a/usr.bin/ctags/ctags.c +++ b/usr.bin/ctags/ctags.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ctags.c,v 1.16 2015/08/22 04:23:07 semarie Exp $ */ +/* $OpenBSD: ctags.c,v 1.17 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) { |