Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/bin/sh - don't export $PPID (from kre)
details: https://anonhg.NetBSD.org/src/rev/ed36b86ed95f
branches: trunk
changeset: 344000:ed36b86ed95f
user: christos <christos%NetBSD.org@localhost>
date: Tue Mar 08 18:16:11 2016 +0000
description:
- don't export $PPID (from kre)
- include <stdio.h>
diffstat:
bin/sh/var.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (31 lines):
diff -r d92e7297fb33 -r ed36b86ed95f bin/sh/var.c
--- a/bin/sh/var.c Tue Mar 08 14:32:34 2016 +0000
+++ b/bin/sh/var.c Tue Mar 08 18:16:11 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: var.c,v 1.45 2016/03/08 14:32:34 christos Exp $ */
+/* $NetBSD: var.c,v 1.46 2016/03/08 18:16:11 christos Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -37,10 +37,11 @@
#if 0
static char sccsid[] = "@(#)var.c 8.3 (Berkeley) 5/4/95";
#else
-__RCSID("$NetBSD: var.c,v 1.45 2016/03/08 14:32:34 christos Exp $");
+__RCSID("$NetBSD: var.c,v 1.46 2016/03/08 18:16:11 christos Exp $");
#endif
#endif /* not lint */
+#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
@@ -199,7 +200,7 @@
* PPID is readonly
*/
snprintf(buf, sizeof(buf), "%d", (int)getppid());
- setvar("PPID", buf, VEXPORT|VREADONLY);
+ setvar("PPID", buf, VREADONLY);
}
void
Home |
Main Index |
Thread Index |
Old Index