Whamcloud - gitweb
e2fsck: fix e2fsck -D for encrypted directories
authorTheodore Ts'o <tytso@mit.edu>
Tue, 1 Aug 2017 14:26:11 +0000 (10:26 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 1 Aug 2017 14:30:19 +0000 (10:30 -0400)
commit5b8d7c51e51aef7879150b07f3967da4028862f3
tree637d53d811fde605c395e8dcf8e53d9b45798edc
parentcfb8e0bd85bea2985cb01e0493fa0bb92fce1014
e2fsck: fix e2fsck -D for encrypted directories

If the directory entry is encrypted there may be embedded NUL
characters; hence, we should use memcmp instead of strncmp when
comparing strings.  Otherwise, e2fsck can erroneously report that a
directory have duplicant entries when doing an e2fsck -D check.

Reported-by: Sahitya Tummala <stummala@codeaurora.org>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
e2fsck/rehash.c