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

Commit d97e8bc3 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "dumpstate: avoid ':' in lshal files" into main

parents 89003886 c6b1fc26
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;