Only write the rc.conf header when a new rc.conf is written. This was

accidentally removed in v. 1.211.

Submitted by:	Olafur Osvaldsson <oli@isnic.is>
PR:		bin/73692
MFC after:	1 week
Approved by:	trhodes
This commit is contained in:
Simon L. B. Nielsen 2004-11-16 21:59:00 +00:00
parent 1b42d69b50
commit a98d8c790a
2 changed files with 2 additions and 2 deletions

View File

@ -428,7 +428,7 @@ configRC_conf(void)
fprintf(rcSite, "#REMOVED: %s", line);
}
fclose(rcOld);
} else {
} else if (write_header) {
fprintf(rcSite, "# This file now contains just the overrides from /etc/defaults/rc.conf.\n");
fprintf(rcSite, "# Please make all changes to this file, not to /etc/defaults/rc.conf.\n\n");
fprintf(rcSite, "# Enable network daemons for user convenience.\n");

View File

@ -428,7 +428,7 @@ configRC_conf(void)
fprintf(rcSite, "#REMOVED: %s", line);
}
fclose(rcOld);
} else {
} else if (write_header) {
fprintf(rcSite, "# This file now contains just the overrides from /etc/defaults/rc.conf.\n");
fprintf(rcSite, "# Please make all changes to this file, not to /etc/defaults/rc.conf.\n\n");
fprintf(rcSite, "# Enable network daemons for user convenience.\n");