From 726bd012037be8fdd455dddaaa9746db519873ae Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Sat, 14 Nov 2015 20:02:34 +0000 Subject: Betting pledge "stdio rpath wpath cpath" works for this. Let's get it into the ports build cycle to find out for sure. --- gnu/usr.bin/cxxfilt/cxxfilt.c | 3 +++ 1 file changed, 3 insertions(+) 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) -- cgit v1.2.3