git: 8db85ff95433 - stable/13 - getentropy: Add Git hashes corresponding to SVN references

From: Ed Maste <emaste_at_FreeBSD.org>
Date: Tue, 19 Nov 2024 13:58:36 UTC
The branch stable/13 has been updated by emaste:

URL: https://cgit.FreeBSD.org/src/commit/?id=8db85ff95433802935487c0a93b04b8debd3849e

commit 8db85ff95433802935487c0a93b04b8debd3849e
Author:     Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2024-11-16 15:18:16 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2024-11-19 13:58:26 +0000

    getentropy: Add Git hashes corresponding to SVN references
    
    getentropy has a comment about a special case to support kernels between
    SVN revisions r331280 and r337999.  Add the corresponding Git hashes so
    there's a usable reference after Subversion infrastructure disappears.
    
    Sponsored by:   The FreeBSD Foundation
    
    (cherry picked from commit 4ef07eb0802a6353faf79d58719d8008decabae0)
    (cherry picked from commit d45fb7b612fdab4172b9d348103c46145108810d)
---
 lib/libc/gen/getentropy.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/lib/libc/gen/getentropy.c b/lib/libc/gen/getentropy.c
index 44cb190f0237..10e7a274958f 100644
--- a/lib/libc/gen/getentropy.c
+++ b/lib/libc/gen/getentropy.c
@@ -125,11 +125,11 @@ getentropy(void *buf, size_t buflen)
 				switch (errno) {
 				case ECAPMODE:
 					/*
-					 * Kernel >= r331280 and < r337999
-					 * will return ECAPMODE when the
-					 * caller is already in capability
-					 * mode, fallback to traditional
-					 * method in this case.
+					 * Kernel >= r331280 (4948f7bf1153)
+					 * and < r337999 (ed1fa01ac45a) will
+					 * return ECAPMODE when the caller is
+					 * already in capability mode; fallback
+					 * to traditional method in this case.
 					 */
 					have_getrandom = false;
 					continue;