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

Commit c6b1fc26 authored by Steven Moreland's avatar Steven Moreland
Browse files

dumpstate: avoid ':' in lshal files

Windows computers don't like this.

Fixes: 288211597
Test: bugreport
Change-Id: I13aa9c3eb596521bed5485e480a8ec652f1bcc31
parent a1681106
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -1414,12 +1414,12 @@ static void DumpHals(int out_fd = STDOUT_FILENO) {
    auto ret = sm->list([&](const auto& interfaces) {
        for (const std::string& interface : interfaces) {
            std::string cleanName = interface;
            std::replace_if(cleanName.begin(),
                            cleanName.end(),
            std::replace_if(
                cleanName.begin(), cleanName.end(),
                [](char c) {
                                return !isalnum(c) &&
                                    std::string("@-_:.").find(c) == std::string::npos;
                            }, '_');
                    return !isalnum(c) && std::string("@-_.").find(c) == std::string::npos;
                },
                '_');
            const std::string path = ds.bugreport_internal_dir_ + "/lshal_debug_" + cleanName;

            bool empty = false;