You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the first component of a file path is equal to the FAT32 volume label then the function readDirWithMkdir incorrectly matches the volume label entry to the file name being searched for1.
A very common scenario where this error can occur is trying to access files in the /EFI directory on an ESP partition with volume label EFI.
Steps to reproduce:
build two FAT32 images (using mtools), one with LABEL=TEST, one with LABEL=EFI, both containing an /EFI directory:
If the first component of a file path is equal to the FAT32 volume label then the function
readDirWithMkdir
incorrectly matches the volume label entry to the file name being searched for1.A very common scenario where this error can occur is trying to access files in the
/EFI
directory on an ESP partition with volume labelEFI
.Steps to reproduce:
LABEL=TEST
, one withLABEL=EFI
, both containing an/EFI
directory:/EFI
directory on each using the followingThis results in the following output:
The expected behaviour would obviously be, that this works for both disk images, regardless of the volume label.
Footnotes
https://github.com/diskfs/go-diskfs/blob/15ebb7b3fb4e7106cfad897d1939ccce8f51743a/filesystem/fat32/fat32.go#L997 ↩
The text was updated successfully, but these errors were encountered: