Add a safety belt to configSysconfig() that should have been in there
from the beginning.
This commit is contained in:
parent
74dcb87f9a
commit
3212a0f8d0
@ -371,8 +371,10 @@ configSysconfig(char *config)
|
||||
msgDebug("Writing %s out to debugging screen..\n", config);
|
||||
fp = fdopen(DebugFD, "w");
|
||||
}
|
||||
else
|
||||
else {
|
||||
(void)vsystem("cp %s %s.previous", config, config);
|
||||
fp = fopen(config, "w");
|
||||
}
|
||||
for (i = 0; i < nlines; i++) {
|
||||
static Boolean firstTime = TRUE;
|
||||
|
||||
|
@ -371,8 +371,10 @@ configSysconfig(char *config)
|
||||
msgDebug("Writing %s out to debugging screen..\n", config);
|
||||
fp = fdopen(DebugFD, "w");
|
||||
}
|
||||
else
|
||||
else {
|
||||
(void)vsystem("cp %s %s.previous", config, config);
|
||||
fp = fopen(config, "w");
|
||||
}
|
||||
for (i = 0; i < nlines; i++) {
|
||||
static Boolean firstTime = TRUE;
|
||||
|
||||
|
@ -371,8 +371,10 @@ configSysconfig(char *config)
|
||||
msgDebug("Writing %s out to debugging screen..\n", config);
|
||||
fp = fdopen(DebugFD, "w");
|
||||
}
|
||||
else
|
||||
else {
|
||||
(void)vsystem("cp %s %s.previous", config, config);
|
||||
fp = fopen(config, "w");
|
||||
}
|
||||
for (i = 0; i < nlines; i++) {
|
||||
static Boolean firstTime = TRUE;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user