Skip to content

Commit ac4c6df

Browse files
committed
Merge branch 'fix/vfs_console_fstat_infinite_recursion_v5.3' into 'release/v5.3'
fix(storage/vfs_console): remove possible infinite recursion (v5.3) See merge request espressif/esp-idf!31423
2 parents c782e57 + c23dbef commit ac4c6df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/esp_vfs_console/vfs_console.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ ssize_t console_write(int fd, const void *data, size_t size)
7373

7474
int console_fstat(int fd, struct stat * st)
7575
{
76-
return fstat(fd, st);
76+
return fstat(vfs_console.fd_primary, st);
7777
}
7878

7979
int console_close(int fd)

0 commit comments

Comments
 (0)