diff options
author | murray <murray@FreeBSD.org> | 2001-09-22 18:07:47 +0000 |
---|---|---|
committer | murray <murray@FreeBSD.org> | 2001-09-22 18:07:47 +0000 |
commit | c71a3e927a672b31aa2ee41630d9101bfebc001e (patch) | |
tree | eaea982df5c74c2c6bc2566c50bae74907b30073 /usr.sbin | |
parent | 505b425ab926e05e0da7c15cbf439a087551732f (diff) | |
download | FreeBSD-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')
-rw-r--r-- | usr.sbin/sade/termcap.c | 2 | ||||
-rw-r--r-- | 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 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; diff --git a/usr.sbin/sysinstall/termcap.c b/usr.sbin/sysinstall/termcap.c index b63cf36..1d8e047 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; |