summaryrefslogtreecommitdiff
path: root/source4/smbd
diff options
context:
space:
mode:
Diffstat (limited to 'source4/smbd')
-rw-r--r--source4/smbd/server.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/source4/smbd/server.c b/source4/smbd/server.c
index 81dd78701e..4cd0263137 100644
--- a/source4/smbd/server.c
+++ b/source4/smbd/server.c
@@ -388,10 +388,9 @@ static int binary_smbd_main(const char *binary_name, int argc, const char *argv[
pidfile_create(lpcfg_piddir(cmdline_lp_ctx), binary_name);
- /* Do *not* remove this, until you have removed
- * passdb/secrets.c, and proved that Samba still builds... */
- /* Setup the SECRETS subsystem */
- if (secrets_init(talloc_autofree_context(), cmdline_lp_ctx) == NULL) {
+ /* Set up a database to hold a random seed, in case we don't
+ * have /dev/urandom */
+ if (randseed_init(talloc_autofree_context(), cmdline_lp_ctx) == NULL) {
return 1;
}