Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/bin/sh It was twenty(-two) years ago today
details: https://anonhg.NetBSD.org/src/rev/49ae4b1bf8a3
branches: trunk
changeset: 345176:49ae4b1bf8a3
user: kre <kre%NetBSD.org@localhost>
date: Wed May 11 17:28:30 2016 +0000
description:
It was twenty(-two) years ago today
J.T. Conklin told us not this way
Berkeley 4.4 lite's changed which file
And it's traced differently all this while
diffstat:
bin/sh/show.c | 18 ++----------------
1 files changed, 2 insertions(+), 16 deletions(-)
diffs (40 lines):
diff -r 6115fde1f65b -r 49ae4b1bf8a3 bin/sh/show.c
--- a/bin/sh/show.c Wed May 11 13:55:28 2016 +0000
+++ b/bin/sh/show.c Wed May 11 17:28:30 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: show.c,v 1.32 2016/02/29 23:52:04 christos Exp $ */
+/* $NetBSD: show.c,v 1.33 2016/05/11 17:28:30 kre Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)show.c 8.3 (Berkeley) 5/4/95";
#else
-__RCSID("$NetBSD: show.c,v 1.32 2016/02/29 23:52:04 christos Exp $");
+__RCSID("$NetBSD: show.c,v 1.33 2016/05/11 17:28:30 kre Exp $");
#endif
#endif /* not lint */
@@ -502,21 +502,7 @@
/* leave open because libedit might be using it */
return;
}
-#ifdef not_this_way
- {
- char *p;
- if ((p = getenv("HOME")) == NULL) {
- if (geteuid() == 0)
- p = "/";
- else
- p = "/tmp";
- }
- scopy(p, s);
- strcat(s, "/trace");
- }
-#else
snprintf(s, sizeof(s), "./trace.%d", (int)getpid());
-#endif /* not_this_way */
if (tracefile) {
if (!freopen(s, "a", tracefile)) {
fprintf(stderr, "Can't re-open %s\n", s);
Home |
Main Index |
Thread Index |
Old Index