From: Tom Rini Date: Tue, 26 Sep 2017 11:25:53 -0400 Subject: [U-Boot] [PATCH v2 4/4] fs-test: Add test for a filename using '..' to go back to the root In-Reply-To: <20170925190634.21738-4-tuomas.tynkkynen@iki.fi> References: <20170925190634.21738-1-tuomas.tynkkynen@iki.fi> <20170925190634.21738-4-tuomas.tynkkynen@iki.fi> Message-ID: <20170926152553.GL3112@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Mon, Sep 25, 2017 at 10:06:34PM +0300, Tuomas Tynkkynen wrote: > 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 Reviewed-by: Tom Rini -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: