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

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

Merge "setprop: check if not setprop value but setprop name starts with "ro."" into main

parents f0db2406 2c6b83f4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -58,7 +58,7 @@ extern "C" int setprop_main(int argc, char** argv) {
        }
    }

    if (value.size() >= PROP_VALUE_MAX && !StartsWith(value, "ro.")) {
    if (value.size() >= PROP_VALUE_MAX && !StartsWith(name, "ro.")) {
        std::cerr << "Value '" << value << "' is too long, " << value.size()
                  << " bytes vs a max of " << PROP_VALUE_MAX << std::endl;
        return EXIT_FAILURE;