From: Franck Bui Date: Thu, 20 Oct 2022 06:52:10 +0000 (+0200) Subject: random-seed: no need to pass 'mode' argument when opening /dev/urandom X-Git-Tag: v253-rc1~635^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4620c0af5dc7a46ed3e213568e99d8a82c44553d;p=thirdparty%2Fsystemd.git 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. --- diff --git a/src/random-seed/random-seed.c b/src/random-seed/random-seed.c index 5b5629d8170..4b8138ca03f 100644 --- a/src/random-seed/random-seed.c +++ b/src/random-seed/random-seed.c @@ -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");