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:
parent
bd61b8e81d
commit
8f217e4c8b
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user