diff --git a/usr.sbin/sade/config.c b/usr.sbin/sade/config.c index 741b6f24351c..583b569f69a2 100644 --- a/usr.sbin/sade/config.c +++ b/usr.sbin/sade/config.c @@ -382,6 +382,7 @@ configRC_conf(void) time_t t_loc; char *cp; static int did_marker = 0; + time_t tp; configTtys(); write_header = !file_readable("/etc/rc.conf"); @@ -400,7 +401,9 @@ configRC_conf(void) for (v = VarHead; v; v = v->next) { if (v->dirty) { if (!did_marker) { - fprintf(rcSite, "# -- sysinstall generated deltas -- #\n"); + time(&tp); + fprintf(rcSite, "# -- sysinstall generated deltas -- # " + "%s", ctime(&tp)); did_marker = 1; } fprintf(rcSite, "%s=\"%s\"\n", v->name, v->value); diff --git a/usr.sbin/sysinstall/config.c b/usr.sbin/sysinstall/config.c index 741b6f24351c..583b569f69a2 100644 --- a/usr.sbin/sysinstall/config.c +++ b/usr.sbin/sysinstall/config.c @@ -382,6 +382,7 @@ configRC_conf(void) time_t t_loc; char *cp; static int did_marker = 0; + time_t tp; configTtys(); write_header = !file_readable("/etc/rc.conf"); @@ -400,7 +401,9 @@ configRC_conf(void) for (v = VarHead; v; v = v->next) { if (v->dirty) { if (!did_marker) { - fprintf(rcSite, "# -- sysinstall generated deltas -- #\n"); + time(&tp); + fprintf(rcSite, "# -- sysinstall generated deltas -- # " + "%s", ctime(&tp)); did_marker = 1; } fprintf(rcSite, "%s=\"%s\"\n", v->name, v->value);