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

Commit 4e0d58c9 authored by David Anderson's avatar David Anderson
Browse files

snapuserd: Don't specify a path to TemporaryFile.

Placing temporary files in the executable dir creates unexpected files
in the build dir when running on the host, which linger if snapuserd
crashes.

Bug: 288273605
Test: snapuserd_test
Change-Id: Ia1ea4ba70b645a9d2f49419b91003bc62fb03cb2
parent dbda1300
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -108,8 +108,7 @@ void SnapuserdTestBase::CreateBaseDevice() {
}

std::unique_ptr<ICowWriter> SnapuserdTestBase::CreateCowDeviceInternal() {
    std::string path = android::base::GetExecutableDirectory();
    cow_system_ = std::make_unique<TemporaryFile>(path);
    cow_system_ = std::make_unique<TemporaryFile>();

    CowOptions options;
    options.compression = "gz";