Whamcloud - gitweb
LU-1540 e2fsck: add missing symlink NUL terminator
authorAndreas Dilger <adilger@whamcloud.com>
Sat, 14 Jul 2012 02:33:01 +0000 (20:33 -0600)
committerAndreas Dilger <adilger@whamcloud.com>
Thu, 9 Aug 2012 08:34:27 +0000 (02:34 -0600)
commit90529815fae49040a49c0709e27243771f696f64
tree01947c3252dfb6e5ba0403db036b050c15060b3f
parentafd50802b17a3f1f2cca5e2c494eb37d1310039d
LU-1540 e2fsck: add missing symlink NUL terminator

If a long symbolic link target is written into an external block
without a NUL terminator, its length is decided by the inode's size.
Make symlink check add a NUL termination in such cases if needed.

Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: I4419b30f1adb4a7d273796a936427aa351510213
e2fsck/e2fsck.h
e2fsck/pass1.c
e2fsck/pass2.c
e2fsck/problem.c
e2fsck/problem.h
tests/f_badsymlinks/expect.1
tests/f_badsymlinks/expect.2