aboutsummaryrefslogtreecommitdiff
path: root/libc/bionic/grp_pwd_file.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libc/bionic/grp_pwd_file.cpp')
-rw-r--r--libc/bionic/grp_pwd_file.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/libc/bionic/grp_pwd_file.cpp b/libc/bionic/grp_pwd_file.cpp
index 81cf8936d..1f45e80f2 100644
--- a/libc/bionic/grp_pwd_file.cpp
+++ b/libc/bionic/grp_pwd_file.cpp
@@ -268,6 +268,7 @@ bool MmapFile::Find(Line* line, Predicate predicate) {
while (line_beginning < end) {
line_beginning = ParseLine(line_beginning, end, line->fields, line->kNumFields);
+#if defined(__ANDROID__)
// To comply with Treble, users/groups from each partition need to be prefixed with
// the partition name.
if (required_prefix_ != nullptr) {
@@ -280,6 +281,7 @@ bool MmapFile::Find(Line* line, Predicate predicate) {
continue;
}
}
+#endif
if (predicate(line)) return true;
}