summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorDhruv Maroo <dhruvmaru007@gmail.com>2021-07-15 19:36:46 +0530
committerGitHub <noreply@github.com>2021-07-15 18:36:46 +0430
commit30af999431fe2e71a0bcd9b48ac05e9934dbc86c (patch)
treeb8b90dda9bf3adc40ccfe9a48adec2ffceceb54f /Userland
parente46a4181fa53584706ceb09c3223228f16fe5aa9 (diff)
downloadserenity-30af999431fe2e71a0bcd9b48ac05e9934dbc86c.zip
Utilities: Allow filenames containing '=' in dd (#8766)
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Utilities/dd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Utilities/dd.cpp b/Userland/Utilities/dd.cpp
index 828a55fbab..7c163a4deb 100644
--- a/Userland/Utilities/dd.cpp
+++ b/Userland/Utilities/dd.cpp
@@ -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 {