Whamcloud - gitweb
e2fsck: fix spurious duplicate directory entries with encrypted filenames
authorTheodore Ts'o <tytso@mit.edu>
Mon, 2 Mar 2015 16:40:18 +0000 (11:40 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 2 Mar 2015 16:40:18 +0000 (11:40 -0500)
commitbaa14bd17fb7f83b8f95e32318a7319a762ce000
tree29ce3376ce4de71ba38f7a104dca2c8e09d87ede
parentae73e88e82946595c263e6604f8d53955826ac4f
e2fsck: fix spurious duplicate directory entries with encrypted filenames

Use memcmp() instead of strncmp() since encrypted directory names can
contain NUL characters.  For non-encrypted directories, we've already
checked for the case of NUL characters in file names, so it's safe to
use memcmp() here in all cases.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
e2fsck/pass2.c