Skip to content

Commit

Permalink
Utilities: Allow filenames containing '=' in dd (SerenityOS#8766)
Browse files Browse the repository at this point in the history
  • Loading branch information
DMaroo committed Jul 15, 2021
1 parent e46a418 commit 30af999
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Userland/Utilities/dd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 30af999

Please sign in to comment.