Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fs: Don't copy d_name from struct dirent
The dirent returned from readdir() is only guaranteed to be valid for d_reclen bytes on common platforms. Since we copy the name separately anyway, we can copy everything except d_name into DirEntry::entry. Fixes rust-lang#93384.
- Loading branch information