summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sade/termcap.c
diff options
context:
space:
mode:
authormurray <murray@FreeBSD.org>2001-09-22 18:07:47 +0000
committermurray <murray@FreeBSD.org>2001-09-22 18:07:47 +0000
commitc71a3e927a672b31aa2ee41630d9101bfebc001e (patch)
treeeaea982df5c74c2c6bc2566c50bae74907b30073 /usr.sbin/sade/termcap.c
parent505b425ab926e05e0da7c15cbf439a087551732f (diff)
downloadFreeBSD-src-c71a3e927a672b31aa2ee41630d9101bfebc001e.zip
FreeBSD-src-c71a3e927a672b31aa2ee41630d9101bfebc001e.tar.gz
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.
Diffstat (limited to 'usr.sbin/sade/termcap.c')
-rw-r--r--usr.sbin/sade/termcap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/sade/termcap.c b/usr.sbin/sade/termcap.c
index b63cf36..1d8e047 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;
OpenPOWER on IntegriCloud