* [Sec 3610] process_control() should bail earlier on short packets. stenn@
- Reported by Philippe Antoine
+* [Bug 3637] Emit the version of ntpd in saveconfig. stenn@
* [Bug 3634] Typo in discipline.html, reported by Jason Harrison. stenn@
* [Bug 3620] memory leak in ntpq sysinfo <perlinger@ntp.org>
- applied patch by Gerry Garvey
{
config_tree * cfg_ptr;
int return_value;
+ time_t now = time(NULL)
+ struct tm tm = *localtime(&now);
+
+ fprintf(df, "#NTF:D %04d%02d%02d@%02d:%02d:%02d\n",
+ tm.tm.tm_year+1900, tm.tm_mon+1, tm.tm_day,
+ tm.tm_hour, tm.tm_min, tm.tm_sec);
+ fprintf(df, "#NTF:V %s\n", Version);
return_value = 0;
for (cfg_ptr = cfg_tree_history;