yaffs: Fix issue with look-up off null names
authorCharles Manning <cdhmanning@gmail.com>
Thu, 26 Jul 2012 00:15:16 +0000 (12:15 +1200)
committerCharles Manning <cdhmanning@gmail.com>
Thu, 26 Jul 2012 00:15:16 +0000 (12:15 +1200)
commit34292b4ec02c8a649d2889a4d7398a34474abe45
tree6f10c1be2e74dadadff241c4131b424e7e03e6a5
parentc83e416cba6748e7a436c5df6a202349ff4d0fe2
yaffs: Fix issue with look-up off null names

Null names can happen if object headers are lost. The object gets named
"objnnn" where nnn is the object id.

We could therefore get the names, but the look-up was not working properly.

This fixes the issue so long as short names are enabled.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
direct/basic-test/dtest.c
yaffs_guts.c