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

Commit d38ddde1 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: a550ee0d

am: b33a6f83

Change-Id: I24871e2d2259cb3444082ae89e4a59979ad5e197
parents 66571856 b33a6f83
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();