summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2016-09-08 15:51:55 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2016-09-08 15:51:55 +0000
commit9dba8dfa0f5d416f9fc4cc25295aced5bd0da4c1 (patch)
treef7b8f4777608ff61ef56693f69bc604d655a16f7
parente05a2e18893effda4ad10d357b493a808ce999bf (diff)
Mark PPID read-only as per the manual. From Anthony Coulter.
-rw-r--r--bin/ksh/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ksh/main.c b/bin/ksh/main.c
index c0e5f67a18a..fbfb02294bb 100644
--- a/bin/ksh/main.c
+++ b/bin/ksh/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.79 2016/03/04 15:11:06 deraadt Exp $ */
+/* $OpenBSD: main.c,v 1.80 2016/09/08 15:51:54 millert Exp $ */
/*
* startup, main loop, environments and error handling
@@ -84,7 +84,7 @@ static const char initsubs[] = "${PS2=> } ${PS3=#? } ${PS4=+ }";
static const char *initcoms [] = {
"typeset", "-r", "KSH_VERSION", NULL,
"typeset", "-x", "SHELL", "PATH", "HOME", NULL,
- "typeset", "-i", "PPID", NULL,
+ "typeset", "-ir", "PPID", NULL,
"typeset", "-i", "OPTIND=1", NULL,
"eval", "typeset -i RANDOM MAILCHECK=\"${MAILCHECK-600}\" SECONDS=\"${SECONDS-0}\" TMOUT=\"${TMOUT-0}\"", NULL,
"alias",