Utilities: Allow filenames containing '=' in dd (#8766)

This commit is contained in:
Dhruv Maroo 2021-07-15 19:36:46 +05:30 committed by GitHub
parent e46a4181fa
commit 30af999431
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
Notes: sideshowbarker 2024-07-18 08:58:45 +09:00

View file

@ -39,8 +39,8 @@ static String split_at_equals(const char* argument)
{
String string_value(argument);
auto values = string_value.split('=');
if (values.size() != 2) {
auto values = string_value.split_limit('=', 2);
if (values.size() < 2) {
warnln("Unable to parse: {}", argument);
return {};
} else {