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

Commit c2e61018 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Rename tmp files" into rvc-dev am: d982cfb6 am: 1f3c2cca am: cadecfb9 am: 829e1af1

Change-Id: Id305e0d79676a247054c8f70bb963530522b5be6
parents e9e78e79 829e1af1
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2171,7 +2171,7 @@ static void PrepareToWriteToFile() {
    }

    if (ds.options_->do_screenshot) {
        ds.screenshot_path_ = ds.GetPath(ds.CalledByApi() ? "-tmp.png" : ".png");
        ds.screenshot_path_ = ds.GetPath(ds.CalledByApi() ? "-png.tmp" : ".png");
    }
    ds.tmp_path_ = ds.GetPath(".tmp");
    ds.log_path_ = ds.GetPath("-dumpstate_log-" + std::to_string(ds.pid_) + ".txt");
@@ -2190,7 +2190,7 @@ static void PrepareToWriteToFile() {
        ds.tmp_path_.c_str(), ds.screenshot_path_.c_str());

    if (ds.options_->do_zip_file) {
        ds.path_ = ds.GetPath(ds.CalledByApi() ? "-tmp.zip" : ".zip");
        ds.path_ = ds.GetPath(ds.CalledByApi() ? "-zip.tmp" : ".zip");
        MYLOGD("Creating initial .zip file (%s)\n", ds.path_.c_str());
        create_parent_dirs(ds.path_.c_str());
        ds.zip_file.reset(fopen(ds.path_.c_str(), "wb"));