From 30af999431fe2e71a0bcd9b48ac05e9934dbc86c Mon Sep 17 00:00:00 2001 From: Dhruv Maroo Date: Thu, 15 Jul 2021 19:36:46 +0530 Subject: [PATCH] Utilities: Allow filenames containing '=' in dd (#8766) --- Userland/Utilities/dd.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/Utilities/dd.cpp b/Userland/Utilities/dd.cpp index 828a55fbab0..7c163a4deb2 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 {