File ntp-4.2.0a-seed_file.patch of Package ntp
diff -ur ntp-strcat//ntpd/ntp_crypto.c ntp-4.2.0a-seed_file//ntpd/ntp_crypto.c
--- ntp-strcat//ntpd/ntp_crypto.c 2008-09-25 17:18:45.000000000 +0200
+++ ntp-4.2.0a-seed_file//ntpd/ntp_crypto.c 2008-09-25 17:29:17.000000000 +0200
@@ -3898,10 +3898,15 @@
exit (-1);
}
if ((bytes = RAND_load_file(rand_file, -1)) == 0) {
+ int m_buff = 0;
+ RAND_write_file(rand_file);
+
msyslog(LOG_ERR,
- "crypto_setup: random seed file %s not found\n",
+ "crypto_setup: random seed file %s not found - created one\n",
rand_file);
- exit (-1);
+ crypto_setup();
+ return ( 0 );
+// exit (-1);
}
get_systime(&seed);
RAND_seed(&seed, sizeof(l_fp));
Nur in ntp-4.2.0a-seed_file//ntpd: ntp_crypto.c.orig.