Whamcloud - gitweb
LU-752 lfsck: compare EA name correctly 73/1973/2
authorNiu Yawei <niu@whamcloud.com>
Mon, 16 Jan 2012 08:20:24 +0000 (00:20 -0800)
committerNiu Yawei <niu@whamcloud.com>
Tue, 17 Jan 2012 10:04:44 +0000 (02:04 -0800)
commit5aed93c3e04548d305909600a885643a0f0b07b6
treeab1463f6b94615ad96dbdf0df663523cf1aecbbe
parentb532eba99c4799c47b004a77c7fa90c2031dd1bd
LU-752 lfsck: compare EA name correctly

In e2fsck_lfsck_find_ea(), it compares EA name by calling strncmp on the
EA name pairs directly, without length checking. This is wrong because
the passed in EA entry could be an empty entry with 0 EA name length,
or it's name could be a sub-string of the comparing one.

Singed-off-by: Ken Hornstein <kenh@cmf.nrl.navy.mil>
Signed-off-by: Niu Yawei <niu@whamcloud.com>
Change-Id: Ib79ea217e67a6702eee2f41155562a775f6c1578
patches/e2fsprogs-lfsck.patch