ANDROID: sdcardfs: Switch to internal case insensitive compare
authorDaniel Rosenberg <drosen@google.com>
Thu, 9 Mar 2017 01:20:02 +0000 (17:20 -0800)
committerStricted <info@stricted.net>
Thu, 11 Oct 2018 16:03:28 +0000 (18:03 +0200)
commit16e0ee27ea73527acbd2c71990bd06a4813c0912
treed173c699a8aa5cd2e3efb936d625b949a998293f
parentea97094bd713f8f78e417982f9f425a98bf30cee
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