From 43616d773f2b0c4ff7ec5401d26fec95cfea5b34 Mon Sep 17 00:00:00 2001 From: jkh Date: Sat, 15 Feb 1997 15:40:37 +0000 Subject: Make configSysconfig() less chatty. Now that this is becoming (dare I even say it?) more useful for post-configuration, no longer leave sysinstall.debug files around by default. Only do this if environment variable SYSINSTALL_DEBUG is set. --- usr.sbin/sysinstall/termcap.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'usr.sbin/sysinstall/termcap.c') diff --git a/usr.sbin/sysinstall/termcap.c b/usr.sbin/sysinstall/termcap.c index a72c0a4..992cb60 100644 --- a/usr.sbin/sysinstall/termcap.c +++ b/usr.sbin/sysinstall/termcap.c @@ -32,7 +32,10 @@ set_termcap(void) stat = ioctl(STDERR_FILENO, GIO_COLOR, &ColorDisplay); if (getpid() != 1) { - DebugFD = open("sysinstall.debug", O_WRONLY|O_CREAT|O_TRUNC, 0644); + if (getenv("SYSINSTALL_DEBUG")) + DebugFD = open("sysinstall.debug", O_WRONLY|O_CREAT|O_TRUNC, 0644); + else + DebugFD = -1; if (DebugFD < 0) DebugFD = open("/dev/null", O_RDWR, 0); } -- cgit v1.1