aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/libc/gen/getentropy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/gen/getentropy.c b/lib/libc/gen/getentropy.c
index ec5ef12ec775..bf7f18b3fd52 100644
--- a/lib/libc/gen/getentropy.c
+++ b/lib/libc/gen/getentropy.c
@@ -85,7 +85,7 @@ getentropy(void *buf, size_t buflen)
if (rd == -1) {
if (errno == EINTR)
continue;
- else if (errno == ENOSYS)
+ else if (errno == ENOSYS || errno == ECAPMODE)
return (getentropy_fallback(buf, buflen));
else
return (-1);