summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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.
*/