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

Commit 462324b6 authored by Johan Harvyl's avatar Johan Harvyl Committed by android-build-merger
Browse files

Merge "Handle error from fopen_path in finish_recovery" am: 8a4333f3 am:...

Merge "Handle error from fopen_path in finish_recovery" am: 8a4333f3 am: a550ee0d am: b33a6f83
am: d38ddde1

Change-Id: I8f21fc8895f5bc2bb714ce64aad137052e825464
parents 2d7ff437 d38ddde1
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -526,12 +526,14 @@ finish_recovery() {
        if (has_cache) {
            LOGI("Saving locale \"%s\"\n", locale);
            FILE* fp = fopen_path(LOCALE_FILE, "w");
            if (fp != NULL) {
                fwrite(locale, 1, len, fp);
                fflush(fp);
                fsync(fileno(fp));
                check_and_fclose(fp, LOCALE_FILE);
            }
        }
    }

    copy_logs();