Add a safety belt to configSysconfig() that should have been in there

from the beginning.
This commit is contained in:
jkh 1997-02-15 11:20:54 +00:00
parent 74dcb87f9a
commit 3212a0f8d0
3 changed files with 9 additions and 3 deletions

View File

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

View File

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

View File

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