summaryrefslogtreecommitdiff
path: root/tools/ifdtool.c
diff options
context:
space:
mode:
authorTuomas Tynkkynen <tuomas.tynkkynen@iki.fi>2017-09-25 22:06:34 +0300
committerTom Rini <trini@konsulko.com>2017-10-06 11:28:19 -0400
commit7c890f149dca077c05114e89bc6f05dc34e62c92 (patch)
tree0421e3f2d938fd391dabd53112c23744b580ae6a /tools/ifdtool.c
parent8df8731474467782c6126f41da87618bcb84852a (diff)
fs-test: Add test for a filename using '..' to go back to the root
The previous commit fixed a problem in FAT code where going back to the root directory using '..' wouldn't work correctly on FAT12 or FAT16. Add a test to exercise this case (which was once fixed in commit 18a10d46f26 "fat: handle paths that include ../" but reintroduced due to the directory iterator refactoring). This test only very barely catches the problem - without the fix the size command still gives valid output but the additional spurious "Invalid FAT entry" error message makes it not get caught in the 'egrep -A3 ' output. I tried to make a proper test that grows the root directory to two clusters lots of with dummy files but that causes the write tests to crash the sandbox totally... Signed-off-by: Tuomas Tynkkynen <tuomas.tynkkynen@iki.fi> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'tools/ifdtool.c')
0 files changed, 0 insertions, 0 deletions