Commit 436c294d authored by Niels Möller's avatar Niels Möller
Browse files

(do_device_source, random_init): Use

io_set_close_on_exec, to avoid fd:s leaking to user shells.

Rev: src/unix_random.c:1.18
parent b0f83c2c
......@@ -258,6 +258,7 @@ do_device_source(struct unix_random *self, int init)
if (self->device_fd < 0)
return 0;
self->device_last_read = now;
......@@ -381,6 +382,7 @@ random_init(struct lsh_string *seed_file_name)
return NULL;
trace("random_init, reading seed file...\n");
if (!read_initial_seed_file(&self->yarrow, self->seed_file_fd))
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment