mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-03-25 13:29:03 +02:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user