util/nvmutil: fix name size in fs_resolve_at

it's capped at 256 bytes

we need it configurable and in sync with
other limits in the code.

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-03-24 22:21:22 +00:00
parent f8d9c51a36
commit 4fc4946f3c

View File

@@ -787,7 +787,12 @@ fs_resolve_at(int dirfd, const char *path, int flags)
int nextfd = -1;
int curfd;
const char *p;
char name[256];
#if defined(PATH_LEN) && \
((PATH_LEN) >= 256)
char name[PATH_LEN];
#else
char name[4096];
#endif
int saved_errno = errno;
int r;
int is_last;