commit | 900fdf47ce40ce3be141671c0689c208b71f00fc | [log] [tgz] |
---|---|---|
author | Yifan Hong <elsk@google.com> | Thu Aug 06 14:52:12 2020 -0700 |
committer | Yifan Hong <elsk@google.com> | Thu Aug 06 15:02:56 2020 -0700 |
tree | 08cd139fcd2f3b162eb67887a2580b1fe73bda5f | |
parent | 7c95de759197cb153e8be26c57b2b33f95f1869e [diff] |
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