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

Commit 488525b4 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "fs_mgr: fix errno setted by mount_with_alternatives"

parents 76850afa 5c31ffe9
Loading
Loading
Loading
Loading
+4 −2
Original line number Original line Diff line number Diff line
@@ -563,9 +563,11 @@ static int mount_with_alternatives(struct fstab *fstab, int start_idx, int *end_
                }
                }
            } else {
            } else {
                fs_stat |= FS_STAT_FULL_MOUNT_FAILED;
                fs_stat |= FS_STAT_FULL_MOUNT_FAILED;
                /* back up errno for crypto decisions */
                /* back up the first errno for crypto decisions */
                if (mount_errno == 0) {
                    mount_errno = errno;
                    mount_errno = errno;
                }
                }
            }
            log_fs_stat(fstab->recs[i].blk_device, fs_stat);
            log_fs_stat(fstab->recs[i].blk_device, fs_stat);
    }
    }