summaryrefslogtreecommitdiff
path: root/distrib/special/more
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-11-11 08:01:23 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-11-11 08:01:23 +0000
commit77325ff5c6ef1f74003a103d52258134c8ff0987 (patch)
tree82968cd0b13e67b28dc2dc1d89cd528447e4699e /distrib/special/more
parent51db33e2b8236dc403c48a6c8867bd3ea79729bd (diff)
the ramdisk more(1) works with pledge "stdio rpath tty"
Diffstat (limited to 'distrib/special/more')
-rw-r--r--distrib/special/more/more.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/distrib/special/more/more.c b/distrib/special/more/more.c
index e7289889d4a..be7feb8812d 100644
--- a/distrib/special/more/more.c
+++ b/distrib/special/more/more.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: more.c,v 1.36 2015/10/15 16:10:57 deraadt Exp $ */
+/* $OpenBSD: more.c,v 1.37 2015/11/11 08:01:22 deraadt Exp $ */
/*
* Copyright (c) 2003 Todd C. Miller <Todd.Miller@courtesan.com>
@@ -210,6 +210,11 @@ main(int argc, char **argv)
int ch;
char initbuf[80];
+ if (pledge("stdio rpath tty", NULL) == -1) {
+ perror("pledge");
+ exit(1);
+ }
+
setlocale(LC_ALL, "");
/* all signals just use a stub handler and interrupt syscalls */