summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2015-11-14 20:31:36 +0000
committerderaadt <deraadt@openbsd.org>2015-11-14 20:31:36 +0000
commit9df6652f2144a34849364bd82f5c20d8e129aa36 (patch)
treed36034a28dcb4318445caa5f95f784aade167813
parentsync (diff)
downloadwireguard-openbsd-9df6652f2144a34849364bd82f5c20d8e129aa36.tar.xz
wireguard-openbsd-9df6652f2144a34849364bd82f5c20d8e129aa36.zip
Symbol table tells me to use pledge "stdio rpath wpath cpath"
-rw-r--r--usr.bin/less/lesskey.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr.bin/less/lesskey.c b/usr.bin/less/lesskey.c
index 35d14ac6521..5fb489eeff1 100644
--- a/usr.bin/less/lesskey.c
+++ b/usr.bin/less/lesskey.c
@@ -723,6 +723,9 @@ main(int argc, char **argv)
FILE *out;
char line[1024];
+ if (pledge("stdio rpath wpath cpath", NULL) == -1)
+ err(1, "pledge");
+
/*
* Process command line arguments.
*/