[JFFS2] Handle dirents on the flash with embedded zero bytes in names.
commitb534e70cf5529378a1ed994492641ec0330554eb
authorDavid Woodhouse <dwmw2@infradead.org>
Sat, 13 Oct 2007 10:35:58 +0000 (13 11:35 +0100)
committerDavid Woodhouse <dwmw2@infradead.org>
Sat, 13 Oct 2007 10:35:58 +0000 (13 11:35 +0100)
treed0257ffa39a331cad12e855122cb1e540b0eac41
parent69ca4378aa376cf2c49657d4f6951da56c27cd3a
[JFFS2] Handle dirents on the flash with embedded zero bytes in names.

In three places: summary scan, normal scan, REF_PRISTINE GC.

Just truncate at the NUL, since that was the correct thing to do in the
only case where this (inexplicable) breakage has been seen.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
fs/jffs2/gc.c
fs/jffs2/scan.c
fs/jffs2/summary.c