diff options
author | 2015-10-10 05:47:54 +0000 | |
---|---|---|
committer | 2015-10-10 05:47:54 +0000 | |
commit | 5cd64a9361cd78c20a7500eeb0b6d61caf8b6c59 (patch) | |
tree | 8419e8953f581fd6a7cea4fadf7db019199ea7b7 /usr.bin/lex/main.c | |
parent | simple program using "stdio rpath" (diff) | |
download | wireguard-openbsd-5cd64a9361cd78c20a7500eeb0b6d61caf8b6c59.tar.xz wireguard-openbsd-5cd64a9361cd78c20a7500eeb0b6d61caf8b6c59.zip |
Some of these large so easy to contain, with "stdio rpath".
ok doug
Diffstat (limited to 'usr.bin/lex/main.c')
-rw-r--r-- | usr.bin/lex/main.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/usr.bin/lex/main.c b/usr.bin/lex/main.c index c88f08311f8..1844147439e 100644 --- a/usr.bin/lex/main.c +++ b/usr.bin/lex/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.14 2014/03/16 18:38:30 guenther Exp $ */ +/* $OpenBSD: main.c,v 1.15 2015/10/10 05:47:54 deraadt Exp $ */ /* flex - tool to generate fast lexical analyzers */ @@ -33,7 +33,7 @@ * PURPOSE. */ -/* $Header: /home/cvs/src/usr.bin/lex/main.c,v 1.14 2014/03/16 18:38:30 guenther Exp $ */ +/* $Header: /home/cvs/src/usr.bin/lex/main.c,v 1.15 2015/10/10 05:47:54 deraadt Exp $ */ #include "flexdef.h" @@ -136,6 +136,13 @@ char **argv; { int i; + if (pledge("stdio rpath wpath cpath", NULL) == -1) + { + fprintf( stderr, _( "%s: pledge\n" ), + program_name); + exit(1); + } + #ifdef THINK_C argc = ccommand( &argv ); #endif |