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

am: bd15393281

Change-Id: Iebd9611b2fc18a6fa9f538a0d0be1d596ace0295
This commit is contained in:
Mark Salyzyn 2019-03-08 09:58:47 -08:00 committed by android-build-merger
commit 07503d3eef
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