mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-13 11:39:43 +00:00
Utilities: Allow filenames containing '=' in dd (#8766)
This commit is contained in:
parent
e46a4181fa
commit
30af999431
Notes:
sideshowbarker
2024-07-18 08:58:45 +09:00
Author: https://github.com/DMaroo 🔰
Commit: 30af999431
Pull-request: https://github.com/SerenityOS/serenity/pull/8766
Issue: https://github.com/SerenityOS/serenity/issues/8746
Reviewed-by: https://github.com/alimpfard
1 changed files with 2 additions and 2 deletions
|
@ -39,8 +39,8 @@ static String split_at_equals(const char* argument)
|
||||||
{
|
{
|
||||||
String string_value(argument);
|
String string_value(argument);
|
||||||
|
|
||||||
auto values = string_value.split('=');
|
auto values = string_value.split_limit('=', 2);
|
||||||
if (values.size() != 2) {
|
if (values.size() < 2) {
|
||||||
warnln("Unable to parse: {}", argument);
|
warnln("Unable to parse: {}", argument);
|
||||||
return {};
|
return {};
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue