summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-11-14 20:02:34 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-11-14 20:02:34 +0000
commit726bd012037be8fdd455dddaaa9746db519873ae (patch)
tree75a10273d3a6f53b09b9355d72335a87fbd09d85
parentdfc6f41febc6e43836c677d09528266b0613ed64 (diff)
Betting pledge "stdio rpath wpath cpath" works for this. Let's get it into
the ports build cycle to find out for sure.
-rw-r--r--gnu/usr.bin/cxxfilt/cxxfilt.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gnu/usr.bin/cxxfilt/cxxfilt.c b/gnu/usr.bin/cxxfilt/cxxfilt.c
index 1804eb23301..10f6f7d6a82 100644
--- a/gnu/usr.bin/cxxfilt/cxxfilt.c
+++ b/gnu/usr.bin/cxxfilt/cxxfilt.c
@@ -189,6 +189,9 @@ main (argc, argv)
program_name = argv[0];
xmalloc_set_program_name (program_name);
+ if (pledge ("stdio rpath wpath cpath", NULL) == -1)
+ err (1, "pledge");
+
strip_underscore = TARGET_PREPENDS_UNDERSCORE;
while ((c = getopt_long (argc, argv, "_ns:", long_options, (int *) 0)) != EOF)