Handle dot and dotdot special files created with other FAT implementations when walking directory trees. Noticed this when trying to walk a disk image created by mkfs.fat + mount + mkdir on my linux box using the fat binary. More specifically, tried this test https://gist.github.com/ricarkol/f72687245e143bc04ba4814c6088d13e. That test creates 41 files in 3 levels of subdirs (counting dot's and dotdot's). Without this change, only 9 files are listed, and the fat bin raises an error: "fat: a directory in the path does not exist".
Also, notice that this change doesn't complete the support for dot and dotdot special files. For example, two pending features are missing: create dot and dotdot special files on mkdir, and find files with paths like /a/b/../c.
Handle
dot
anddotdot
special files created with other FAT implementations when walking directory trees. Noticed this when trying to walk a disk image created bymkfs.fat + mount + mkdir
on my linux box using the fat binary. More specifically, tried this test https://gist.github.com/ricarkol/f72687245e143bc04ba4814c6088d13e. That test creates 41 files in 3 levels of subdirs (countingdot
's anddotdot
's). Without this change, only 9 files are listed, and the fat bin raises an error: "fat: a directory in the path does not exist".Also, notice that this change doesn't complete the support for dot and dotdot special files. For example, two pending features are missing: create dot and dotdot special files on mkdir, and find files with paths like
/a/b/../c
.