From 8f217e4c8bd00ce6bcbfe5eb4776164a7466da16 Mon Sep 17 00:00:00 2001 From: Murray Stokely Date: Sat, 22 Sep 2001 18:07:47 +0000 Subject: [PATCH] Use the isDebug() function rather than making up a new environment variable to check for debug functionality. Previously, you had to set both 'debug' and 'SYSINSTALL_DEBUG' to get a log of sysinstall's activities. Now, only 'debug' is necessary. --- usr.sbin/sade/termcap.c | 2 +- usr.sbin/sysinstall/termcap.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/sade/termcap.c b/usr.sbin/sade/termcap.c index b63cf3654d1..1d8e047bc12 100644 --- a/usr.sbin/sade/termcap.c +++ b/usr.sbin/sade/termcap.c @@ -81,7 +81,7 @@ set_termcap(void) stat = ioctl(STDERR_FILENO, GIO_COLOR, &ColorDisplay); if (!RunningAsInit) { - if (getenv("SYSINSTALL_DEBUG")) + if (isDebug()) DebugFD = open("sysinstall.debug", O_WRONLY|O_CREAT|O_TRUNC, 0644); else DebugFD = -1; diff --git a/usr.sbin/sysinstall/termcap.c b/usr.sbin/sysinstall/termcap.c index b63cf3654d1..1d8e047bc12 100644 --- a/usr.sbin/sysinstall/termcap.c +++ b/usr.sbin/sysinstall/termcap.c @@ -81,7 +81,7 @@ set_termcap(void) stat = ioctl(STDERR_FILENO, GIO_COLOR, &ColorDisplay); if (!RunningAsInit) { - if (getenv("SYSINSTALL_DEBUG")) + if (isDebug()) DebugFD = open("sysinstall.debug", O_WRONLY|O_CREAT|O_TRUNC, 0644); else DebugFD = -1;