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.
This commit is contained in:
Murray Stokely 2001-09-22 18:07:47 +00:00
parent bd61b8e81d
commit 8f217e4c8b
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;