Fix directory look up.
authorCharles Manning <cdhmanning@gmail.com>
Tue, 19 May 2015 22:21:52 +0000 (10:21 +1200)
committerCharles Manning <cdhmanning@gmail.com>
Tue, 19 May 2015 22:21:52 +0000 (10:21 +1200)
commit1ebec0597a033cba1b18b32466bbd6b7dcfdcecb
treee4ceeeef5e974895bd04d7153b7f59ff7aa72e12
parent9ec94eea1865dfb884640c4db487d6855f801107
Fix directory look up.

Thanks to Trent Lillehaugen for new algorithm:

Let's say I have two yaffs partitions: "/" and "/foo".
If I call, yaffs_mkdir("/foobar", 0), yaffsfs_FindDevice will match the path
with the "/foo" partition.  I would expect it to match "/" instead.
It will also match "/fo/o/bar" with "/foo", again I think it should match
with "/".

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
direct/yaffsfs.c