From fa4e47f7be57c60f7098176ce943bcd44d2915db Mon Sep 17 00:00:00 2001 From: kre Date: Wed, 11 May 2016 17:28:30 +0000 Subject: [PATCH] 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 --- bin/sh/show.c | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/bin/sh/show.c b/bin/sh/show.c index 95a685f30960..07a5c0d6407c 100644 --- a/bin/sh/show.c +++ b/bin/sh/show.c @@ -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 @@ opentrace(void) /* 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);