diff options
-rw-r--r-- | usr.sbin/sade/config.c | 2 | ||||
-rw-r--r-- | usr.sbin/sysinstall/config.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/sade/config.c b/usr.sbin/sade/config.c index cfb705ac87c1..b7eee11bfbfa 100644 --- a/usr.sbin/sade/config.c +++ b/usr.sbin/sade/config.c @@ -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"); diff --git a/usr.sbin/sysinstall/config.c b/usr.sbin/sysinstall/config.c index cfb705ac87c1..b7eee11bfbfa 100644 --- a/usr.sbin/sysinstall/config.c +++ b/usr.sbin/sysinstall/config.c @@ -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"); |