LDLINUX:vfat: Oh, NO, I did fix the above bug in a wrong way!
authorLiu Aleaxander <Aleaxander@gmail.com>
Thu, 10 Dec 2009 13:35:07 +0000 (21:35 +0800)
committerLiu Aleaxander <Aleaxander@gmail.com>
Thu, 10 Dec 2009 13:35:07 +0000 (21:35 +0800)
commitdab523c1cddc1b8af0eb45653639ecd8bdddee41
treebff8ed41bf7caf3f551996dfa9b2f6da62efe061
parentf99e28af352f72f13131194ddffeafb2aebf3f84
LDLINUX:vfat: Oh, NO, I did fix the above bug in a wrong way!

I shouldn't count on the 'dname' parameter, we should ZERO the
'long_name' buffer at every time we met a new long name entry,
and that's the right way to fix the bug.

And we shouldn't count the 'id == 0' to check if we have a long
name matched first or not. Say we have one entry of a long name
entry, it will always be 'id == 0' even it doesn't matches. So,
add a new flag variable to do this.

Signed-off-by: Liu Aleaxander <Aleaxander@gmail.com>
core/fs/fat/fat.c