diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-11-14 20:31:37 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-11-14 20:31:37 +0000 |
commit | 8ef997413893d89f46f75c7be85fbfaec74d4c88 (patch) | |
tree | 8b18597bfbf23f6f3568d0992a0b2b7c5f2e7622 | |
parent | 674343287c4d2f7a4da18464cc6ab15423e714a9 (diff) |
Symbol table tells me to use pledge "stdio rpath wpath cpath"
-rw-r--r-- | usr.bin/less/lesskey.c | 3 |
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. */ |