Provide a way to deal with rc.conf which may already be populated in certain

cases.
This commit is contained in:
trhodes 2003-12-13 16:12:55 +00:00
parent 6e2380a7c3
commit c18042c896
2 changed files with 4 additions and 0 deletions

View File

@ -422,6 +422,8 @@ configRC_conf(void)
while(fgets(line, sizeof(line), rcOld)) {
if(line[0] == '#' || variable_check2(line) != 0)
fprintf(rcSite, "%s", line);
else
fprintf(rcSite, "#REMOVED: %s", line);
}
fclose(rcOld);
} else {

View File

@ -422,6 +422,8 @@ configRC_conf(void)
while(fgets(line, sizeof(line), rcOld)) {
if(line[0] == '#' || variable_check2(line) != 0)
fprintf(rcSite, "%s", line);
else
fprintf(rcSite, "#REMOVED: %s", line);
}
fclose(rcOld);
} else {