Merge "fs_mgr: overlay: preserve errno android::gsi::IsGsiRunning()" am: 6c5c085e41 am: bd15393281

am: 07503d3eef

Change-Id: I860abe7396e2b377c6c2f238cc6640f32a73cb91
This commit is contained in:
Mark Salyzyn 2019-03-08 10:02:35 -08:00 committed by android-build-merger
commit 172b3113bf
1 changed files with 4 additions and 3 deletions

View File

@ -769,9 +769,10 @@ bool fs_mgr_overlayfs_invalid() {
// in recovery, fastbootd, or gsi mode, not allowed!
if (fs_mgr_access("/system/bin/recovery")) return true;
if (android::gsi::IsGsiRunning()) return true;
return false;
auto save_errno = errno;
auto ret = android::gsi::IsGsiRunning();
errno = save_errno;
return ret;
}
} // namespace