mirror of
https://github.com/systemd/systemd.git
synced 2026-08-06 08:00:57 +00:00
random-seed: no need to pass 'mode' argument when opening /dev/urandom
The open() call is not supposed to create /dev/urandom. No functional change.
This commit is contained in:
@@ -248,7 +248,7 @@ static int run(int argc, char *argv[]) {
|
||||
} else
|
||||
write_seed_file = true;
|
||||
|
||||
random_fd = open("/dev/urandom", O_RDWR|O_CLOEXEC|O_NOCTTY, 0600);
|
||||
random_fd = open("/dev/urandom", O_RDWR|O_CLOEXEC|O_NOCTTY);
|
||||
if (random_fd < 0)
|
||||
return log_error_errno(errno, "Failed to open /dev/urandom: %m");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user