Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 900fdf47 authored by Yifan Hong's avatar Yifan Hong
Browse files

Fix allowlist for unreliable pinning.

When checking IsUnreliablePinningAllowed, the existing code calls
IsTestDir on a value starts with "/data", but IsTestDir expects
metadata_dir_. Fix it.

Also, make subdir checks more robust and add test cases for IsSubdir.

Fixes: 162557082
Test: vts_libsnapshot_test
Test: fiemap_image_test

Change-Id: I495cfae3da11d1e0800b8abf520df10dd9a29dce
parent 7c95de75
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment