cramfs: fix bug for wrong filename comparison
authorHolger Brunck <holger.brunck@keymile.com>
Mon, 8 Jul 2013 07:06:49 +0000 (09:06 +0200)
committerTom Rini <trini@ti.com>
Mon, 15 Jul 2013 21:06:09 +0000 (17:06 -0400)
commit457dd025a2899dd486e594ce3dc4afaa4ea09998
tree21c46a6e1a70f3fa27fa7346814a6e18bde288b2
parentc8605bb4d8f0ded37e863b0a4fe2844ce5e8e2fa
cramfs: fix bug for wrong filename comparison

"cramfsload uImage_1" succeeds even though the actual file is named
"uImage".

Fix file name comparison when one name is the prefix of the other.

Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
cc: Wolfgang Denk <wd@denx.de>
cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
fs/cramfs/cramfs.c