]> Savannah Git Hosting - gnulib.git/commit
getrandom: Produce a better error code.
authorBruno Haible <bruno@clisp.org>
Thu, 13 May 2021 19:33:55 +0000 (21:33 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 13 May 2021 19:33:55 +0000 (21:33 +0200)
commitcc5bf815d325867d4d96edb7963b695dfce7d849
tree3b537c8ad8a082ca716ee9e840a0b0e42791b7b7
parent301426c0215a918d3d60e7dbd16489065378a91b
getrandom: Produce a better error code.

Reported by Paul Eggert in
<https://lists.gnu.org/archive/html/bug-gnulib/2021-05/msg00025.html>.

* lib/getrandom.c (getrandom): When open() fails with an error that does
not indicate the absence of the file, fail with that error code, not
with ENOSYS.
ChangeLog
lib/getrandom.c