Explorar el Código

Utilities: Allow filenames containing '=' in dd (#8766)

Dhruv Maroo hace 4 años
padre
commit
30af999431
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      Userland/Utilities/dd.cpp

+ 2 - 2
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 {