1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 08:34:57 +00:00

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

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 {