git: 0b988281ca3c - stable/15 - fusefs: fix gcc build error with shadowed variable in tests

From: Enji Cooper <ngie_at_FreeBSD.org>
Date: Thu, 01 Oct 2026 19:37:47 UTC
The branch stable/15 has been updated by ngie:

URL: https://cgit.FreeBSD.org/src/commit/?id=0b988281ca3c7d874f880589788e136a8da33e7b

commit 0b988281ca3c7d874f880589788e136a8da33e7b
Author:     Ryan Libby <rlibby@FreeBSD.org>
AuthorDate: 2026-07-10 17:51:03 +0000
Commit:     Enji Cooper <ngie@FreeBSD.org>
CommitDate: 2026-10-01 19:37:08 +0000

    fusefs: fix gcc build error with shadowed variable in tests
    
    Reported by:    gcc -Werror=shadow
    Reviewed by:    asomers, markj
    Fixes:  ee1c3d38a26a ("fusefs: fix vnode locking violations during execve")
    Differential Revision:  https://reviews.freebsd.org/D58130
    
    (cherry picked from commit c503d23a6ccb8090edabc1c90981f9b8f202e093)
---
 tests/sys/fs/fusefs/misc.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/sys/fs/fusefs/misc.cc b/tests/sys/fs/fusefs/misc.cc
index d95356262c1f..985fe927a858 100644
--- a/tests/sys/fs/fusefs/misc.cc
+++ b/tests/sys/fs/fusefs/misc.cc
@@ -280,7 +280,7 @@ TEST_F(FexecvDefaultPermissions, atime)
 	}, [&] {
 		char *const argv[] = {__DECONST(char *, "true"), NULL};
 		char *const env[] = {NULL};
-		char buf[8];
+		char cbuf[8];
 		int fd;
 
 		/* Note that fexecve doesn't actually require O_EXEC */
@@ -290,7 +290,7 @@ TEST_F(FexecvDefaultPermissions, atime)
 			return 1;
 		}
 		/* Read a few bytes, just to dirty the file's atime */
-		if (read(fd, buf, sizeof(buf)) < 0) {
+		if (read(fd, cbuf, sizeof(cbuf)) < 0) {
 			fprintf(stderr, "read: %s\n", strerror(errno));
 			return 1;
 		}