diff options
| author | Ryan Libby <rlibby@FreeBSD.org> | 2026-07-10 17:51:03 +0000 |
|---|---|---|
| committer | Ryan Libby <rlibby@FreeBSD.org> | 2026-07-10 17:51:03 +0000 |
| commit | c503d23a6ccb8090edabc1c90981f9b8f202e093 (patch) | |
| tree | d86fc1f3761d8368027d224b3e9322ce44021e58 | |
| parent | 3c8cc666a3d3d65aedd552364e5fd43221b90d55 (diff) | |
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
| -rw-r--r-- | tests/sys/fs/fusefs/misc.cc | 4 |
1 files 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; } |
