ANDROID: sdcardfs: Switch to internal case insensitive compare
authorDaniel Rosenberg <drosen@google.com>
Thu, 9 Mar 2017 01:20:02 +0000 (17:20 -0800)
committerDaniel Rosenberg <drosen@google.com>
Tue, 30 Jan 2018 03:40:05 +0000 (19:40 -0800)
commitb7aae40ab39467e3e7cb1c747af9a494481fdbc6
tree8536c0e46a798c30747994ae289e92c8c1ea81bf
parentdd1017df6009d3785fa8aac9c154ccae0d940d1f
ANDROID: sdcardfs: Switch to internal case insensitive compare

There were still a few places where we called into a case
insensitive lookup that was not defined by sdcardfs.
Moving them all to the same place will allow us to switch
the implementation in the future.

Additionally, the check in fixup_perms_recursive did not
take into account the length of both strings, causing
extraneous matches when the name we were looking for was
a prefix of the child name.

Signed-off-by: Daniel Rosenberg <drosen@google.com>
Change-Id: I45ce768cd782cb4ea1ae183772781387c590ecc2
fs/sdcardfs/dentry.c
fs/sdcardfs/derived_perm.c
fs/sdcardfs/packagelist.c
fs/sdcardfs/sdcardfs.h