diff options
author | Maciej S. Szmigiero <maciej.szmigiero@oracle.com> | 2023-02-22 00:29:31 +0100 |
---|---|---|
committer | Maciej S. Szmigiero <maciej.szmigiero@oracle.com> | 2023-02-22 00:29:31 +0100 |
commit | 7bee4cecdd21911e498fafc6bdf1b98bcecff387 (patch) | |
tree | 239a4a3c75b4ce1b352fe2c55effb1c01f7a6fd0 | |
parent | 339aaa3719757614af61f427b66a46893e6dc760 (diff) | |
download | glib-7bee4cecdd21911e498fafc6bdf1b98bcecff387.tar.gz |
grand: Use "e" mode flag in fopen () call for race-free setting of the close-on-exec flag
It was missed when other fopen () call sites were converted since the code
had it written as "fopen()" (without space before the opening parenthesis).
-rw-r--r-- | glib/grand.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/glib/grand.c b/glib/grand.c index 1c56d0195..5fb44576d 100644 --- a/glib/grand.c +++ b/glib/grand.c @@ -230,7 +230,7 @@ g_rand_new (void) do { - dev_urandom = fopen("/dev/urandom", "rb"); + dev_urandom = fopen ("/dev/urandom", "rbe"); } while G_UNLIKELY (dev_urandom == NULL && errno == EINTR); |