summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rw-r--r--bin/csh/csh.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/csh/csh.c b/bin/csh/csh.c
index 52fdbfcbcfd..3ef96b6e4a2 100644
--- a/bin/csh/csh.c
+++ b/bin/csh/csh.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: csh.c,v 1.28 2015/02/08 05:51:37 tedu Exp $ */
+/* $OpenBSD: csh.c,v 1.29 2015/10/18 03:09:11 deraadt Exp $ */
/* $NetBSD: csh.c,v 1.14 1995/04/29 23:21:28 mycroft Exp $ */
/*-
@@ -104,6 +104,10 @@ main(int argc, char *argv[])
cshout = stdout;
csherr = stderr;
+ if (pledge("stdio rpath wpath cpath fattr getpw proc exec tty",
+ NULL) == -1)
+ perror("pledge");
+
settimes(); /* Immed. estab. timing base */
/*