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

Commit 6c5c085e authored by Mark Salyzyn's avatar Mark Salyzyn Committed by Gerrit Code Review
Browse files

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

parents ecef987a 27c50473
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -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