about summary refs log tree commit diff
path: root/src/usr.bin/what/what.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr.bin/what/what.c')
-rw-r--r--src/usr.bin/what/what.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/usr.bin/what/what.c b/src/usr.bin/what/what.c
index 0bad985..d22d673 100644
--- a/src/usr.bin/what/what.c
+++ b/src/usr.bin/what/what.c
@@ -1,4 +1,4 @@
-/*	$OpenBSD: what.c,v 1.13 2015/01/22 19:10:17 krw Exp $	*/
+/*	$OpenBSD: what.c,v 1.15 2015/10/09 01:37:09 deraadt Exp $	*/
 /*	$NetBSD: what.c,v 1.4 1994/12/20 16:01:03 jtc Exp $	*/
 
 /*
@@ -58,6 +58,9 @@ main(int argc, char *argv[])
 	char match[256];
 	int c;
 
+	if (pledge("stdio rpath", NULL) == -1)
+		err(1, "pledge");
+
 	matches = sflag = 0;
 	while ((c = getopt(argc, argv, "s")) != -1) {
 		switch (c) {